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



David Turnidge wrote:

I am writing a CLP to read a file resulting from a DSPOBD for a data
library.

I want to read the file through once to create all my physicals. (CRTDUPOBJ
- Data(*NO).

When I get to EOF, I want to take whatever steps are necessary to start at
the top of the file to read all the objects that are NOT Physical files, and
create them.

Dave,

Change the program logic to submit/call itself, using a parameter to determine whether it should process physicals or logicals. Change your DspObjD to DspFD with *BasAtr list to obtain the list of files to process. DspFD allows the specification of file sub-type.

First time through, specify *PF as the file attributes to gather info on. Second time through, specify *LF.

Bill

As an Amazon Associate we earn from qualifying purchases.

This thread ...


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.