Ways of passing data from JCL to Program ?



JES, JES2, JCL utilities, IDCAMS, Compile & Run JCLs, PROCs etc...

Ways of passing data from JCL to Program ?

Postby ganeshj_1983 » Sun Apr 17, 2016 4:10 pm

Ways of passing data from JCL to Program ?
ganeshj_1983
 
Posts: 5
Joined: Sun Apr 17, 2016 3:36 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Ways of passing data from JCL to Program ?

Postby prino » Sun Apr 17, 2016 5:09 pm

RTFM, STFW!
Robert AH Prins
robert.ah.prins @ the.17+Gb.Google thingy
User avatar
prino
 
Posts: 635
Joined: Wed Mar 11, 2009 12:22 am
Location: Vilnius, Lithuania
Has thanked: 3 times
Been thanked: 28 times

Re: Ways of passing data from JCL to Program ?

Postby willy jensen » Mon Apr 18, 2016 7:30 pm

More specifically refer to the JCL Reference manual for the description of the SYSIN DD statement.
willy jensen
 
Posts: 455
Joined: Thu Mar 10, 2016 5:03 pm
Has thanked: 0 time
Been thanked: 69 times

Re: Ways of passing data from JCL to Program ?

Postby steve-myers » Mon Apr 18, 2016 8:29 pm

There are two ways to pass data to a program via JCL -

  • The EXEC statement PARM parameter.

    // EXEC PGM=apgm,PARM='1 to 100 characters of data the program can retrieve'
  • An in stream data set

    // EXEC PGM=IEBGENER
    //SYSPRINT DD SYSOUT=*
    //SYSIN DD DUMMY
    //SYSUT2 DD SYSOUT=*
    //SYSUT1 DD *
    Hello lazy, this data was in your JCL
    /*
steve-myers
Global moderator
 
Posts: 2105
Joined: Thu Jun 03, 2010 6:21 pm
Has thanked: 4 times
Been thanked: 243 times


Return to JCL

 


  • Related topics
    Replies
    Views
    Last post