IBM Security Z Security

 View Only
  • 1.  PGM=CKRCARLA SYSIN

    Posted Mon February 07, 2022 12:53 PM

    Any suggestions on how to reference MDATE in the CKRCARLA SYSIN, as opposed to hardcoding the M<yymm>?

     

     

    //         SET MDATE=M2201                                    

    //         SET LPAR=MVSC                                      

    //         SET C2PACPRM=SYSP.ZSECURE.V24.&LPAR..CKRPARM       

    //*                                                           

    //ROLLUP   EXEC PGM=CKRCARLA,REGION=500M,COND=(0,NE)          

    //*                                                           

    //STEPLIB  DD DISP=SHR,DSN=SYS1.SCKRLOAD                      

    //CKRCARLA DD DISP=SHR,DSN=SYS1.SCKRCARL                      

    //*                                                           

    //SYSIN    DD DATA,DLM=ZZ                                     

     ALLOC TYPE=ACCESS DSNPREF=SYSP.ZSECURE.V24.MVSC.DT.C2PAC.M2201

    ALLOC TYPE=OUTPUT DD=C2PACMON                                

     INCLUDE DD=SC2PSAMP MEMBER=C2PAMCMP                          

     

    //* Peter Ten Eyck

    //* Systems Programming Team

    //* American National

    //

     



    American National is the brand name for American National Insurance Company, headquartered in Galveston, Texas, and its subsidiaries. Each company has financial responsibility only for its own products and services. American National Insurance Company is not licensed in New York. In New York, business is conducted by New York licensed subsidiaries. For more information, go to www.americannational.com.
    Confidentiality: This transmission, including any attachments, is solely for the use of the intended recipient(s). This transmission may contain information that is confidential or otherwise protected from disclosure. The use or disclosure of the information contained in this transmission, including any attachments, for any purpose other than that intended by its transmittal is strictly prohibited. Unauthorized interception of this email is a violation of federal criminal law. If you are not an intended recipient of this transmission, please immediately destroy all copies received and notify the sender.


  • 2.  RE: PGM=CKRCARLA SYSIN

    IBM Champion
    Posted Tue February 08, 2022 02:58 AM
    Edited by Rob van Hoboken Tue February 08, 2022 05:24 AM
    Hi Peter
    JCL can substitute symbols in SYSIN streams using the EXPORT JCL command (which must precede the assignment of the symbol) and the SYMLIST parameter on the DD statement, as follows:

    // EXPORT SYMLIST=(MDATE,LPAR)
    //         SET MDATE=M2201                                    

    //         SET LPAR=MVSC                                      

    //         SET C2PACPRM=SYSP.ZSECURE.V24.&LPAR..CKRPARM       

    //*                                                           

    //ROLLUP   EXEC PGM=CKRCARLA,REGION=500M,COND=(0,NE)          

    //*                                                           

    //STEPLIB  DD DISP=SHR,DSN=SYS1.SCKRLOAD                      

    //CKRCARLA DD DISP=SHR,DSN=SYS1.SCKRCARL                      

    //*                                                           

    //SYSIN    DD DATA,DLM=ZZ,SYMBOLS=JCLONLY                                     

     ALLOC TYPE=ACCESS DSNPREF=SYSP.ZSECURE.V24.&LPAR..DT.C2PAC.&MDATE

     ALLOC TYPE=OUTPUT DD=C2PACMON                                

     INCLUDE DD=SC2PSAMP MEMBER=C2PAMCMP                          
    ZZ


    You've also got SYMBOLS=EXECSYS to pull in system symbols (from the executing LPAR) in addition to the JCL symbols.

    See previous discussion

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


  • 3.  RE: PGM=CKRCARLA SYSIN

    Posted Tue February 08, 2022 04:08 AM

    Use JCL?? symbols facility.

    example:

    //S1 EXPORT?? SYMLIST=(MDATE)

    //S2?????? SET MDATE=M2201??????

    ..

    //SYSIN DD *,SYMBOLS=JCLONLY

    ALLOC TYPE=ACCESS DSNPREF=SYSP.ZSECURE.V24.MVSC.DT.C2PAC.&MDATE

    ??????






  • 4.  RE: PGM=CKRCARLA SYSIN

    Posted Tue February 08, 2022 08:31 AM

    Yes, thanks. I was able to get this working using SYMBOLS.

     

    //* Peter Ten Eyck

    //* Systems Programming Team

    //* American National

    //

     



    American National is the brand name for American National Insurance Company, headquartered in Galveston, Texas, and its subsidiaries. Each company has financial responsibility only for its own products and services. American National Insurance Company is not licensed in New York. In New York, business is conducted by New York licensed subsidiaries. For more information, go to www.americannational.com.
    Confidentiality: This transmission, including any attachments, is solely for the use of the intended recipient(s). This transmission may contain information that is confidential or otherwise protected from disclosure. The use or disclosure of the information contained in this transmission, including any attachments, for any purpose other than that intended by its transmittal is strictly prohibited. Unauthorized interception of this email is a violation of federal criminal law. If you are not an intended recipient of this transmission, please immediately destroy all copies received and notify the sender.