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



On Mon, 24 Mar 2003, John Furniss wrote:
>     We have a need to find the name of a file and copy it to a PF as a
> new member. A company will be sending us a file that will get FTPed to
> QGPL as P21nnnnnnn, where nnnnnnn is the number of seconds since
> 01/01/1970.
>     How can we determine the name of the file? I checked the forum but
> CHKOBJ was as close as I found. Can I check for the existance of P21*?
>


I have two things I'd like to add to what people have already said:

1) Why QGPL?  It seems like a better way to do this would be to put
     it in it's own library or folder.   It just keeps things better
     organized.   Plus, you won't have to worry about someone else
     coming along and making an object that starts with "P21" in QGPL.

2) The number of seconds since 01/01/1970 won't fit in a 7-digit number.
     You'll need at least a 10 digit number for that, which is a problem
     since object names can only be 10-digits long and must start with a
     letter.  Storing them in the IFS would solve that problem, if that's
     a possibility.

Aside from that, I agree with the others.  Use either DSPOBJD or QUSLOBJ
to get a list of objects.  (Tho, I wouldn't use a CL program as some
people have suggested, but rather an RPG program...  CL is just too
limited!)


As an Amazon Associate we earn from qualifying purchases.

This thread ...

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.