Search found 200 matches
- Wed Nov 02, 2022 4:15 pm
- Forum: HTTPAPI
- Topic: HTTPAPI Timeout question
- Replies: 3
- Views: 5644
Re: HTTPAPI Timeout question
Most of the APIs in HTTPAPI offer an optional timeout parameter Darryl which allow you to specify the timeout delay in seconds. For example: D http_get PR 10I 0 extproc('HTTP_URL_GET') D peURL 32767A varying const options(*varsize) D peFilename 32767A varying const options(*varsize) D peTimeout 10I ...
- Fri Oct 28, 2022 3:07 am
- Forum: RPG IV
- Topic: Sleep API not working correctly in sub-procedures
- Replies: 2
- Views: 3683
Re: Sleep API not working correctly in sub-procedures
Your prototype is wrong. You are passing by reference (a pointer) when sleep() - as do most C library functions- requires the value be passed by VALUE. You code is never seeing the value you set - rather it is using the pointer to that value which could equate to any period of time. Proto should be:...
- Thu Oct 20, 2022 9:39 pm
- Forum: YAJL-ILE
- Topic: Error 1002
- Replies: 5
- Views: 2350
Re: Error 1002
I just used your code as-is - except that I added doc=file to read in the json you supplied - no errors. So you're going to have to show some json that actually makes it go wrong - cos the stuff you posted works fine! You could use a few countprefix fields for your arrays so that you can easily tell...
- Thu Oct 20, 2022 7:56 pm
- Forum: YAJL-ILE
- Topic: Error 1002
- Replies: 5
- Views: 2350
Re: Error 1002
P.S. I just ran your json through the program generated by YAJLGEN and had no errors. So there has to be something in your definitions that is causing the issue.
- Thu Oct 20, 2022 7:44 pm
- Forum: YAJL-ILE
- Topic: Error 1002
- Replies: 5
- Views: 2350
Re: Error 1002
Basically a 1002 error is saying the data is invalid for the intended target. Since you didn't post the DS you are using or the DATA-INTO itself we have no idea what it might be.
Show us the code and we'll have a better idea.
Show us the code and we'll have a better idea.
- Thu Oct 13, 2022 9:38 pm
- Forum: HTTPAPI
- Topic: HTTPAPI Performance questions
- Replies: 15
- Views: 12072
Re: HTTPAPI Performance questions
I did! Look at what I said. Here's a small extract of your source (with spacing added) wrapped in code tags // ---------------------------------------------------------- // Procedure interface - passed Parameters // ---------------------------------------------------------- dcl-pi json_05 extpgm; pC...
- Thu Oct 13, 2022 4:34 pm
- Forum: HTTPAPI
- Topic: HTTPAPI Performance questions
- Replies: 15
- Views: 12072
Re: HTTPAPI Performance questions
Can you please edit the post to put code tags around the source so it is readable.
i.e. the word code in square brackets [ ] use /code to end it.
i.e. the word code in square brackets [ ] use /code to end it.
Code: Select all
That will produce correctly spaced results like this ssss
- Thu Oct 13, 2022 3:39 pm
- Forum: RPG IV
- Topic: STRPCCMD Issues
- Replies: 5
- Views: 3631
Re: STRPCCMD Issues
Check out this thread - lengthy discussion on the subject.
https://code400.com/forum/forum/iseries ... g-strpccmd
https://code400.com/forum/forum/iseries ... g-strpccmd
- Fri Oct 07, 2022 3:30 pm
- Forum: General
- Topic: Help with 5250 protocol
- Replies: 4
- Views: 5646
Re: Help with 5250 protocol
To help you "fix" it we'd need to know what method is currently being used. The normal method of handling 5250s is via display files (DSPG objects) Or are you using UIM ? or the C-style DSM APIs? Or raw 5250 data stream? Or ... ???? What language are you using? What issues are you facing e...
- Fri Sep 30, 2022 5:08 pm
- Forum: HTTPAPI
- Topic: How to find current version
- Replies: 4
- Views: 5349
Re: How to find current version
In QRPGLESRC in LIBHTTP there is a source member CHANGELOG.TXT which lists versions and changes. Not sure if I have the latest version on my system but it shows 1.39 as the latest change.