|
Thank you Justin, I am not getting an error. It is reading the
directory, but not seeing any files. That is why I thought maybe its
some type of authority issue but all the files have *public *all
On Thu, Feb 23, 2017 at 9:13 AM, Justin Taylor <JUSTIN@xxxxxxxxxxxxx>
wrote:
Try this and see if it helps find the problem:but
https://www.scottklement.com/rpg/ifs_ebook/errors.html
-----Original Message-----
From: Audrey Guardino [mailto:aguardino85@xxxxxxxxx]
Sent: Thursday, February 23, 2017 7:15 AM
To: Midrange Systems Technical Discussion <midrange-l@xxxxxxxxxxxx>
Subject: READDIR
I am using the below code to read an IFS directory. This same code works
on another Iseries without issue. There are two files in the directory
the program is not reading them. I checked the authority on thedirectory
and the files and *Public has all authorities. Any ideas why it maynot
see the files? Thankslist
directory = opendir('/Directory1');
if (directory = *NULL);
// ERROR: unable to open directory!
endif;
p_dirent = readdir(directory);
dow (p_dirent <> *NULL);
filename = %subst(d_name:1:d_namelen);
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing
To post a message email: MIDRANGE-L@xxxxxxxxxxxx--
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://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
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: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://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 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.