Page 1 of 1

Ways of passing data from JCL to Program ?

PostPosted: Sun Apr 17, 2016 4:10 pm
by ganeshj_1983
Ways of passing data from JCL to Program ?

Re: Ways of passing data from JCL to Program ?

PostPosted: Sun Apr 17, 2016 5:09 pm
by prino
RTFM, STFW!

Re: Ways of passing data from JCL to Program ?

PostPosted: Mon Apr 18, 2016 7:30 pm
by willy jensen
More specifically refer to the JCL Reference manual for the description of the SYSIN DD statement.

Re: Ways of passing data from JCL to Program ?

PostPosted: Mon Apr 18, 2016 8:29 pm
by steve-myers
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
    /*