|
Murali wrote: > 2. i wrote a cl program as per the advise given here which is as > following.... > > DCL &LIBFILE *CHAR LEN(10) > DCLF FILE1 > BEGIN: > > RCVF FILE1 > CHGVAR &LIBFILE VALUE(FLD) > MONMSG EXEC(GO To CMDLBL(END)) > > DSPOBJD (&LIBFILE/*ALL) *OUTFILE(*curlib/ATXFILEO) > > GOTO CMDLBL(BEGIN) > END: > ENDPGM May I suggest that you look at the spooled file created when you compiled the CL program? It will show you the names of all the fields in the database file. Probably, you just missed the '&' in the field name '&FLD', but it's always good to review the compiler listing. Adding to Vern's suggestion, why do you need a separate outfile for each of the DSPOBJD commands? Why not use a single outfile in QTEMP and MBROPT(*ADD) for second and subsequent DSPOBJD commands? --buck
As an Amazon Associate we earn from qualifying purchases.
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.