Page 1 of 1

Parm in JCL.

Posted: Thu May 29, 2014 5:49 pm
by Vinod M
Hi,

As shown below, I pass value using parm but the parm length in the program is zero while I display that. Any guidance is welcome:

Code: Select all

LINKAGE SECTION. 
01 LS-INPUT-PARM. 
05 LS-PARM-LENGTH PIC S9(04) COMP. 
05 LS-MONTHLY-IND PIC X(21). 
JCL is:

Code: Select all

//R010 EXEC PGM=IKJEFT1A, 
//* PARM='&IND,&FMDT,&TDT' 
// PARM='D2014-01-012014-01-31',COND=(0,NE)

Re: Parm in JCL.

Posted: Thu May 29, 2014 5:57 pm
by enrico-sorichetti
You did not tell, You did not show enough ...

what is the PGM=IKJEFT1A about ?

Re: Parm in JCL.

Posted: Sat Aug 23, 2014 10:54 am
by Vinod M
That's a variant of IKJEFT01 to execute a COBOL-DB2 program.

Re: Parm in JCL.

Posted: Sat Aug 23, 2014 3:42 pm
by Robert Sample
What you have done is pass the parameter to IKJEFT1A, not to your program. To pass it to your program, you will need to include it on the line where you actually execute your program.