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



Your CHGVAR uses 'FLD' for the VALUE() parameter - that needs to be a variable, not a constant. It can be the name of the field in FILE1, preceded by an '&'. And you don't really need separate variables - you can use expressions in the commands. This can be seen as somewhat sloppy style, don't know. Anyway, here's a shot at it, with the assumption that the name of the field in FILE1 is FLD (It's possible that expressions are not allowed in the filename of OUTFILE, in which case, use the extra variable.):

DCLF FILE1
BEGIN:
RCVF
MONMSG CPF0864 EXEC(GOTO END)
DSPOBJD &FLD/*ALL OUTPUT(*OUTFILE) OUTFILE(*CURLIB/(&FLD *TCAT '0'))
GOTO BEGIN
END:
ENDPGM


The DSPOBJD command will fail if the library name is 10 characters long. You need to handle that situation. You could use %SST, etc. The other thing there is that you could get duplicate names.

So, is there a need for the final '0'? Why not just use the file name as is? Just curious, and trying to forestall a problem.

Regards

Vern

At 02:38 PM 7/25/2003 +0000, you wrote:
Vern,
I have more than 300 libraries(around1000) ...But I ve to analyse and prepare report for only to this 300 libraries ..I ve xl sheet which is containing this 300 list of libraries which needs to be analysed based on the command DSPOBJD...
1.as per your advise i ve converted xl sheet by doing FTP to a flat file FILE1.


2. i wrote a cl program as per the advise given here which is as following....
BEGIN


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

This program is nt working ...Can you correct me where iam going wrong?
I ve list of libraries in xl sheet ..their names are ATXFILE,ATXPGM,MSFILE,MSPGM etc...My outfiles which im generating should ve the coresponding names like ATXFILEO,ATXPGMO,MSFILEO,MSPGMO etc...
Can you advise me on this



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.