I'm not sure why debug shows the question mark but in your if I would put %trim around the objtype field because the literals aren't padded with blanks. I think that is your issue with the if failing.
Scott Mildenberger
-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of rob@xxxxxxxxx
Sent: Wednesday, November 21, 2012 8:02 AM
To: rpg400-l@xxxxxxxxxxxx
Subject: filestats.st_objtype
How come when I debug my program and I type in EVAL FILESTATS.ST_OBJTYPE I see
FILESTATS.ST_OBJTYPE = '*STMF ?'
and
EVAL FILESTATS.ST_OBJTYPE :x
shows me
EVAL FILESTATS.ST_OBJTYPE :x
00000 5CE2E3D4 C6404040 404000.. ........ - *STMF
The reason that I am asking is because it's failing this:
when (filestats.st_objtype<>'*DIR') and
(filestats.st_objtype<>'*STMF');
// only interested in directories and stream files.
Rob Berendt
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2026 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.