Search found 15 matches

by peder udesen
Mon Oct 30, 2023 8:15 am
Forum: YAJL-ILE
Topic: Determine which JSON was received.
Replies: 2
Views: 6067

Re: Determine which JSON was received.

A quick and dirty solution could be to open the file and read the first 1MB into a variable.
Then scan for the string "AmbiguousAddressIndicator":

If it is found then it is file 2 else it is file 1

Don't forget to close the file after reading :)
by peder udesen
Thu Aug 31, 2023 10:13 am
Forum: HTTPAPI
Topic: Timing problem
Replies: 4
Views: 8240

Re: Timing problem

If I understand you correct then it is the file in the IFS on your local machine that is not closed. Many years ago I had the same problem. I made a small program that tried to open the IFS file exclusively with the flags flags = O_RDONLY + O_SHARE_NONE; The program was called with the parameters 1)...
by peder udesen
Tue Jul 25, 2023 7:19 am
Forum: FTPAPI
Topic: 550 The semaphore timeout period has expired
Replies: 7
Views: 9552

Re: 550 The semaphore timeout period has expired

Thank you very much.

I will let it check for this error and retry every 2 seconds.
by peder udesen
Mon Jul 24, 2023 9:45 am
Forum: FTPAPI
Topic: 550 The semaphore timeout period has expired
Replies: 7
Views: 9552

Re: 550 The semaphore timeout period has expired

If I monitor for an error message containing "550", "semaphore" and "timeout"
as described before do you think it will cause problems?
by peder udesen
Thu Jul 20, 2023 9:48 am
Forum: FTPAPI
Topic: 550 The semaphore timeout period has expired
Replies: 7
Views: 9552

Re: 550 The semaphore timeout period has expired

Thank you very much for your thorough explanation. I will show it to one of my local Infrastructure colleagues and have a discussion with him if it is a solution to raise a ticket for our global organization. If it can not be solved there, should I check for an error message containing "550&quo...
by peder udesen
Tue Jul 18, 2023 7:34 am
Forum: FTPAPI
Topic: 550 The semaphore timeout period has expired
Replies: 7
Views: 9552

550 The semaphore timeout period has expired

I have a program that copies files from a FTP server to our local "AS/400" ( choose the name you prefer ). Then it creates a mail with the files attached and sends it. It has worked without problems for years. A couple of years ago the FTP server was moved from our local site to a server i...
by peder udesen
Wed Aug 31, 2022 8:40 am
Forum: YAJL-ILE
Topic: DATA-INTO. missing nodes name
Replies: 11
Views: 3636

Re: DATA-INTO. missing nodes name

Perhaps you can do it by coding a handler for Rational Open Access
using "Handling input data using name-value information"

Check it here:
https://www.ibm.com/docs/en/i/7.4?topic ... input-data
by peder udesen
Thu Jul 28, 2022 7:20 am
Forum: CSVR4
Topic: CSV file locked even after csv_close()
Replies: 1
Views: 9854

Re: CSV file locked even after csv_close()

Have you found the cause to the problem?
Please tell us if you found what happened.

Otherwise here are 2 links that might help you.

https://www.rpgpgm.com/2015/07/checking ... s-and.html
https://www.ibm.com/support/pages/findi ... e-system-0
by peder udesen
Mon Jul 18, 2022 8:00 am
Forum: CSVR4
Topic: New version but old error not corrected? and new function not implemented.
Replies: 7
Views: 13018

Re: New version but old error not corrected? and new function not implemented.

Thank you for your response. I didn't want to offend you.