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.  Z/OSMF Variables to substiture in JCL

    Posted Wed July 05, 2023 09:09 AM

    I am having issues in creating a workflow to override JCL with variables. I have tried $Instance-Variable1 and I have set it but never updates the jcl. What am i doing incorrect? 



    ------------------------------
    Scott Fashimpaur
    ------------------------------


  • 2.  RE: Z/OSMF Variables to substiture in JCL

    Posted Wed July 05, 2023 09:47 AM

    Without seeing your workflow definition file, it could be any number of issues.  For starters, did you specify substitution="true" on the <inlineTemplate> tag?  Like this:

    <template>
    <inlineTemplate substitution="true">
    ...
    //DDNAME   DD DISP=SHR,DSN=${instance-dsnamevar}
    ...
    </inlineTemplate>
    <submitAs>JCL</submitAs>
    </template>



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



  • 3.  RE: Z/OSMF Variables to substiture in JCL

    Posted Wed July 05, 2023 01:59 PM

    Thanks Kurt.

        <variable name="ZOS" scope="instance" visibility="public">

            <label>ZOS</label>

            <abstract>ZOS RELEASE FOR CSI</abstract>

            <description>THis is the csi ZOS release variable. ZOSVXXX</description>

            <category>General</category>

            <string valueMustBeChoice="false" multiLine="false">

                <minLength>7</minLength>

                <maxLength>7</maxLength>

            </string>

        </variable>

     

            <template>

                <inlineTemplate substitution="true">//*

    /*JOBPARM SYSAFF=*

    //  SET ZOS=${instance-ZOS}

    //*  ACCEPT RSU MAINT TO THE D100 (Z/OS + COMPONENTS) ZONE.

    //*

    //* &lt;&lt;PRE-REQ&gt;&gt;

    //* -  VERIFY THE DLIB ZONE BELOW.

    //*

    //ACCEPT   EXEC PGM=GIMSMP,REGION=0M

    //SMPCSI   DD  DISP=SHR,DSN=SMPE.&amp;&amp;ZOS..GLOBAL.CSI

    //SMPLOG   DD  DUMMY

    //SMPOUT   DD  SYSOUT=*

    //SMPRPT   DD  SYSOUT=*

    //SMPLIST  DD  SYSOUT=*

    //SYSPRINT DD  SYSOUT=*

    //SYSUT1   DD  UNIT=SYSALLDA,SPACE=(CYL,(100,50))

    //SYSUT2   DD  UNIT=SYSALLDA,SPACE=(CYL,(100,50))

    </inlineTemplate>

                <submitAs maxRc="0">JCL</submitAs>

            </template>

        </step>

    </workflow>

     

    This is what I have and it is not working

     






  • 4.  RE: Z/OSMF Variables to substiture in JCL

    Posted Wed July 05, 2023 02:18 PM

    I see you defined the variable in the workflow, but did you identify the variable for that workflow step using the <variableValue> tag?  Something like this:

    <step name="..." optional="true">
      <title>...</title>
      <description>In this step... </description>
      <variableValue name="ZOS" required="true" noPromptIfSet="true"/>
      ...
      <template>
      ...



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



  • 5.  RE: Z/OSMF Variables to substiture in JCL

    Posted Wed July 05, 2023 02:50 PM

    Thanks Kurt for the follow up . the JCL was in a data set that was set as caps on and INSTANCE was all caps and messed it all up where it did not resolve. I have it resolving now.

     

    Scott FashimpaurManaged Services Managing Consultant - Mainframe
    Office: 972-963-9814 |  24x7 Command Center: 800-364-3780 Mobile Phone: (214) 430-7457  

    Twitter: @fashimpaurscott | LinkedIn: /fashimpaurscott
    Frisco, Texas Home Office
    www.siriuscom.com | Scott.Fashimpaur@cdw.com 

     

    "What You Do, Matters! But Why You Do It, Matters More!"

     

    Planned Out Of Office:

    March 31, 2023 – April 9, 2023