In the INCLUDE COND the file 'FCFP' is dynamic, there are about 144 values to be passed replacing 'FCFP'. Also in the OUTREC FIELDS the value 'CFP-' is also dynamic and it it should be the last three characters of INCLUDE COND- 'FCFP'.
If you want to do something else, you need to explain exactly what you want to do.
Note that you don't need the trailing blanks in the 5,30,CH constants ... DFSORT will pad the constant with trailing blanks to match the length of the field (30).
Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
You still haven't made it clear where the value for the run comes from.
You say
Quote:
The batch program will use a parameter file.
Does that mean that the "value" is in another file? If so, what is the RECFM and LRECL of that file? What does the record (or records) in that file look like? Where is the value in that file? Give an example.
If the value is NOT in another file, then where is it exactly? Give an example.
//FAMCBPRC PROC
//*
//FAMCBPRC EXEC PGM=&MEM,DYNAMNBR=20
//STEPLIB INCLUDE MEMBER=STEPLIB
//SYSTSPRT DD SYSOUT=*
//SYSPRINT DD SYSOUT=*
//SYSOUT DD SYSOUT=*
//INPFIL DD DSN=&VER..PROCLIB(FAMTCPGM),DISP=SHR
//*******************************************************************
//* DATAFL HAS THE LIST OF FIELDS IN THE VSAM FILE *
//*******************************************************************
//DATAFL DD DUMMY
//PMMREC DD DSN=&HLQ..PMMREC,DISP=SHR
//PMMELE DD DSN=&HLQ..PMMELE,DISP=SHR
//OUTFIL DD DSN=&VER..VSAM2SQL.BSRCELIB,DISP=(MOD,CATLG,DELETE)
//*******************************************************************
//*PARMIN HAS THE VSAM FILE FOR WHICH DOWNLOAD PROGRAM NEEDS TO BE *
//* GENERATED *
//*******************************************************************
//PARMIN DD DUMMY
//SYSUDUMP DD SYSOUT=*
//*
The value i mentioned will be in parm file. There will be only one parm file and one value in the parm file. EX: FCFP .
We want to run the jcl for about 144 values one by one by giving override in jcl. please refer the JCL.
Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
My idea was to use DFSORT to create DFSORT Symbols from the value (abcd) in the PARM file and then use those DFSORT Symbols in your control statements: