× 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.



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
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 =

...5...10...15...20...25...30...35...40...45...50...55...60
1 '.
'
61 '
'
121 '
'
181 '
'
241 '
'
301 '
'
361 '
'
421 '
'
481 '
'
541 '
'
601 ' '

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
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:
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
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

--
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

--
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

--
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 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.