Parm in JCL.

RDBMS from IBM and IBM's Hierarchical DBMS and Transaction Manager (IMS DC).
Post Reply
Vinod M
Registered Member
Posts: 10
Joined: Mon Jan 27, 2014 10:39 am

Parm in JCL.

Post 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)
enrico-sorichetti
Global Moderator
Global Moderator
Posts: 826
Joined: Wed Sep 11, 2013 3:57 pm

Re: Parm in JCL.

Post by enrico-sorichetti »

You did not tell, You did not show enough ...

what is the PGM=IKJEFT1A about ?
cheers
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort 8-)
Vinod M
Registered Member
Posts: 10
Joined: Mon Jan 27, 2014 10:39 am

Re: Parm in JCL.

Post by Vinod M »

That's a variant of IKJEFT01 to execute a COBOL-DB2 program.
User avatar
Robert Sample
Global Moderator
Global Moderator
Posts: 1895
Joined: Fri Jun 28, 2013 1:22 am
Location: Dubuque Iowa
United States of America

Re: Parm in JCL.

Post 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.
Post Reply

Create an account or sign in to join the discussion

You need to be a member in order to post a reply

Create an account

Not a member? register to join our community
Members can start their own topics & subscribe to topics
It’s free and only takes a minute

Register

Sign in

Return to “IBM DB2 and IMS DB/DC”