Something has changed.

Make sure the file name doesn't have spaces in it. I've seen that
happen... spaces at the end of the filename and when you trim() in your
program they technically don't match.

If it's in QOpenSys make sure it's the right case for the filename.

Debug the program, find the value of the filename. and use WRKLNK to double
check it is there. Check the authority to the directory and file.

If you're not using a fully qualified path and filename (ie, the filename
starts with a /), make sure the home directory for the user running the
application is correct.


Bradley V. Stone
www.bvstools.com
MAILTOOL Benefit #10 <https://www.bvstools.com/mailtool.html>: Resend
Emails - When emails are sent using MAILTOOL Plus or another addon, those
emails are logged and you have the ability to resend them one by one, or as
a batch (ie, all unsent emails at once).

On Fri, Oct 26, 2018 at 7:26 PM midrange <franz9000@xxxxxxxxx> wrote:

Have a sftp process that gets a text file from remote partner, to an
existing ifs folder.

As soon as sftp ended, a rpgle is called to open and read the file.

Has run for years, 10-30 times a day, but last couple days rpgle throws
error



eval fd = open(%trim(@file):

O_RDONLY+O_TEXTDATA)





CPF9897 Escape 40 10/26/18 10:41:27.830575 XXX14
XXXPGM

From module . . . . . . . . : XXX14


From procedure . . . . . . : DIE


Statement . . . . . . . . . : 1087


To module . . . . . . . . . : XXX32


To procedure . . . . . . . : XXX32


Statement . . . . . . . . . : 986


Message . . . . : open(): No such
path or directory.



Run multiple times and same result.

Auth is the same

No recent changes in sftp or called programs.

V7R3 and no recent ptf changes

Sftp job is submitted and using dtaq to notify caller (CLLE) when done.

Caller then calls RPGLE XXX14.

There are 5200 files in that directory, adding 10 to 30 each day.

Very little activity on the system.



Added a 5 second delay before calling XXX14 and now it works again.



What would cause OS to not recognize a new file in the IFS and need such a
delay?

One change to the system is change from weekly ipl to quarterly.



Jim

--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at https://archive.midrange.com/midrange-l.

Please contact support@xxxxxxxxxxxx for any subscription related
questions.

Help support midrange.com by shopping at amazon.com with our affiliate
link: http://amzn.to/2dEadiD


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.