|
That's the entry for ., which is normal. You should get one for ., and
one for .. Usually the first two records read.
Kevin Bucknum
Senior Programmer Analyst
MEDDATA/MEDTRON
Tel: 985-893-2550
-----Original Message-----
From: MIDRANGE-L [mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf...5...10...15...20...25...30...35...40...45...50...55...60
Of Audrey Guardino
Sent: Thursday, February 23, 2017 8:50 AM
To: Midrange Systems Technical Discussion
Subject: Re: READDIR
D_NAMELEN = 1
EVAL d_name
D_NAME =
1 '.'
61 ''
121 ''
181 ''
241 ''
301 ''
361 ''
421 ''
481 ''
541 ''
601 ' 'maybe its
On Thu, Feb 23, 2017 at 9:27 AM, Michael Ryan <michaelrtr@xxxxxxxxx>
wrote:
what are the values of d_name and d_namelen when you're in debug?
On Thu, Feb 23, 2017 at 9:24 AM, Audrey Guardino
<aguardino85@xxxxxxxxx>
wrote:
Thank you Justin, I am not getting an error. It is reading the
directory, but not seeing any files. That is why I thought
thesome type of authority issue but all the files have *public *allworks
On Thu, Feb 23, 2017 at 9:13 AM, Justin Taylor
<JUSTIN@xxxxxxxxxxxxx>
wrote:
Try this and see if it helps find the problem:
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
on another Iseries without issue. There are two files in thebut
directory
the program is not reading them. I checked the authority on
it maydirectory
and the files and *Public has all authorities. Any ideas why
mailingnotlist
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
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)
affiliatelist To post a message email: MIDRANGE-L@xxxxxxxxxxxx To subscribe,take
unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx Before posting, please
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
listlink: http://amzn.to/2dEadiD--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing
To post a message email: MIDRANGE-L@xxxxxxxxxxxx To subscribe,http://archive.midrange.com/midrange-
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
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-2025 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.