IBM Security Z Security

 View Only
Expand all | Collapse all

CARLa Example Using INDD in PARM string

  • 1.  CARLa Example Using INDD in PARM string

    InnerCircle
    Posted Fri August 13, 2021 12:50 PM
    I can't figure out how to use INDD to specify a pds member that contains my CARLa code rather than having the code instream.

    Anyone have an example of when they used INDD?

    Thanks.

    ------------------------------
    Linda Czestler
    ------------------------------


  • 2.  RE: CARLa Example Using INDD in PARM string

    Posted Mon August 16, 2021 03:21 AM
    Edited by Rob van Hoboken Mon August 16, 2021 03:21 AM

    Hi Linda
    You could use ALLOC INDD=ddname in the PARM parameter of your JCL:

    //RUNMYREP EXEC C2RC,PARM='ALLOC INDD=MYREP'
    //MYREP DD DISP=SHR,DSN=GROUP.CARLA(MYREPORT)

    But it is much more convenient to use the INCLUDE command:

    //RUNMYREP EXEC C2RC
    //MYREP DD DISP=SHR,DSN=GROUP.CARLA(MYREPORT)
    //SYSIN DD *
    INCLUDE DD=MYREP

    or

    //RUNMYREP EXEC C2RC
    //CARLALIB DD DISP=SHR,DSN=GROUP.CARLA
    //SYSIN DD *
    INCLUDE DD=CARLALIB M=MYREP

    If you run your reports in ISPF, you can go to CO.1, add an entry for the PDS 'GROUP.CARLA' with a data set type CKRCARLA.  Type an S in front of the entry to select it.
    Then type an E in front of entry to show the members, and type an R to run a member.
    Or use CO.3 + enter the member name to run the report.

    ------------------------------
    Rob van Hoboken
    ------------------------------