×
The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.
Hi Audrey
You may have checked the authority but have you used wrklnk or edtf to actually view the contents of these files in the ifs?
The authority on data in the ifs is NOT the same as the AS/400 authority on objects
Alan Shore
E-mail : ASHORE@xxxxxxxx
Phone [O] : (631) 200-5019
Phone [C] : (631) 880-8640
'If you're going through hell, keep going.'
Winston Churchill
-----Original Message-----
From: MIDRANGE-L [mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of Audrey Guardino
Sent: Thursday, February 23, 2017 8: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 but
the program is not reading them. I checked the authority on the directory
and the files and *Public has all authorities. Any ideas why it may not
see the files? Thanks
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 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.