|
DCL &LIBFILE *CHAR LEN(10) DCLF FILE1 BEGIN:
RCVF FILE1 CHGVAR &LIBFILE VALUE(FLD) MONMSG EXEC(GO To CMDLBL(END))
GOTO CMDLBL(BEGIN) END: ENDPGM
Hi. Murali
I don't know your final needs, can you say more about the final use? SQL, RPG, CL, or ? That often helps determine what should be done initially.
So just a few thoughts in a slightly different direction--
Is it necessary to have distinct files? Especially with a name that is different (albeit, derived) from the actual name? The reason I ask is, the outfile already has the library names as one of the fields - ODLBNM.
Or are the 300 libraries in some list? How was it derived? Can it be converted into a physical file? Then that file could be read in CL, using DSPOBJD on each. Otherwise, Buck's suggestion of using a user options in PDM sounds good to me. Even the trailing '0' could be a part of the option - but it won't work with 10-character file names (this is another problem with this kind of naming plan). Still, your command on the use option could have OUTMBR(mbr *ADD) instead of *REPLACE - if you use the same name for the outfile.
Also, do these happen to be all the non-IBM libraries on your system? Then DSPOBJD *ALLUSR/*ALL OUTPUT(*OUTFILE) would do them all in one stroke.
HTH
Vern
At 06:04 PM 7/24/2003 +0000, you wrote:This is in continuation to my earlier mail....I ve to repeat the same command DSPOBJD for 300 libraries with same options on this command...Iam looking for any simple way of doing this(like writing a program) instead of executing this command for each and everylibrary on command line ....everytime the library name and its outfile name changes...
for example ATXFILE lib will have outfile name ATXFILEO
for exampple ATXPGM lib will have outfile name ATXPGMO...
Thanks in advance, mURALI
_______________________________________________
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.
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.