IBM z/OS Management Facility (z/OSMF)

IBM z/OSMF

IBM z/OSMF

The IBM z/OS Management Facility framework improves programmer productivity by using simplified, streamlined and automated tasks. This easier-to-use functionality reduces both programmer training time and the learning curve.

 View Only
  • 1.  zOSMF Workflows and inline JCL Templates containing temporary datasets

    Posted 08/27/21 12:52 PM
    Hi

    In a ZOSMF workflow, how can we have temporary datasets within template JCL?
    Please see extracted workflow statements below (not everything is here for simplicity). In this case, we need the variable VARY1 substituted, but we also have a temporary dataset in the inline JCL called &&TEMPDSN which is passed onto subsequent steps.

    I cannot get ZOSMF to recognize this correctly and it always leads to an error. Maybe there's a way around this.

    <variableValue name="VARY1" scope="instance" noPromptIfSet="false" required="true"/>
    <template>
    <inlineTemplate substitution="true">//*
    //TOOL1 EXEC PGM=PROGRAM
    //INPUT    DD DISP=SHR,DSN=${instance-VARY1}
    //PGMRPT DD DISP=(NEW,PASS),DSN=&&TEMPDSN.....

    Many thanks

    ------------------------------
    Ian Chappell
    ------------------------------


  • 2.  RE: zOSMF Workflows and inline JCL Templates containing temporary datasets

    Posted 08/27/21 03:42 PM
    I don't know if this will solve it or not, but have you tried escaping the ampersand characters with backslash ("\")?

    DSN=\&\&TEMPDSN

    ------------------------------
    Kurt Quackenbush
    IBM, z/OS SMP/E and z/OSMF Software Management
    kurtq@us.ibm.com
    ------------------------------



  • 3.  RE: zOSMF Workflows and inline JCL Templates containing temporary datasets

    Posted 08/27/21 03:50 PM

    I finally managed to fix it by using &amp;

     

    e.g. //      DD  DISP=(,PASS),DSN=&amp;&amp;DATASET

     

    this seems to work when it goes through z/OSMF

     

    Many thanks

     

     

     

     

    This message (including any attachments) contains confidential information intended for a specific individual and purpose, and is protected by law. If you are not the intended recipient, you should delete this message and any disclosure, copying, or distribution of this message, or the taking of any action based on it, by you is strictly prohibited.

    Deloitte refers to a Deloitte member firm, one of its related entities, or Deloitte Touche Tohmatsu Limited ("DTTL"). Each Deloitte member firm is a separate legal entity and a member of DTTL. DTTL does not provide services to clients. Please see www.deloitte.com/about to learn more.

    v.E.1