IBM Support

PM40766: JCL VARIABLE NOT RESOLVED ON FIRST REFERENCE IF DEPENDENT AND POSITIONAL

A fix is available

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • If a DEPENDENT JCL VARIABLE is referenced in a given JCL first
    as a "normal)" ("%") variable, then as a positional (?) variable
    the first reference as a positional variable may not be resolved
    correctly.  The variable value may be resolved as BLANK.
    .
    For instance given this JCL:
    //*%OPC TABLE NAME=(PBAMTSTV)
    //*%OPC SETVAR T1=(CYY+1YR)
    //*%OPC SETVAR T2=(CYY-2YR)
    //*T1       :<&T1.>
    //*T2       :<&T2.>
    //*CMM      :<&CMM.>
    //*MTV331A  :<&MTV331A.>
    //*MTV331   :<&MTV331.>
    //DUMMY    EXEC PGM=ICEGENER
    //SYSPRINT DD SYSOUT=*
    //SYSUT1   DD *
    THIS IS TEST CARD 1           <&MTV331A.>   <      ?46MTV331
    THIS IS TEST CARD 2           <&MTV331A.>   <      ?46MTV331
    //SYSUT2   DD SYSOUT=*
    //SYSIN DD DUMMY
    /*
    The two TESTCARD lines resolve as:
    THIS IS TEST CARD 1           < >   <
    THIS IS TEST CARD 2           < >   <        1           08
    .
    This problem has been recreated by the TWSz Change Team.
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED: All TWS for zOS users running positional     *
    *                 Variable Substitution.                       *
    *                 FUNCTION=JCL                                 *
    ****************************************************************
    * PROBLEM DESCRIPTION: JCL Variable can be not resolved on     *
    *                      the first reference if dependent and    *
    *                      positional.                             *
    ****************************************************************
    * RECOMMENDATION: APPLY THE PTF FIXING THIS APAR               *
    ****************************************************************
    If a Dependent JCL Variable is referenced in a given JCL as
    a "normal" ("&") variable, then as a positional ("?") variable
    twice, all is correctly resolved besides the first reference
    as a positional variable: the variable value may be resolved
    as BLANK.
    

Problem conclusion

  • The problem was due to a wrong length check.
    302Y
    502Y
    512Y
    EQQJHSLN
    

Temporary fix

Comments

APAR Information

  • APAR number

    PM40766

  • Reported component name

    TIV WRKLD SCHD

  • Reported component ID

    5697WSZ01

  • Reported release

    512

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2011-06-03

  • Closed date

    2011-06-24

  • Last modified date

    2011-09-02

  • APAR is sysrouted FROM one or more of the following:

  • APAR is sysrouted TO one or more of the following:

    UK69224 UK69225 UK69226

Modules/Macros

  • EQQJHSLN
    

Fix information

  • Fixed component name

    TIV WRKLD SCHD

  • Fixed component ID

    5697WSZ01

Applicable component levels

  • R302 PSY UK69224

       UP11/08/25 P F108

  • R502 PSY UK69225

       UP11/08/25 P F108

  • R512 PSY UK69226

       UP11/08/25 P F108

Fix is available

  • Select the PTF appropriate for your component level. You will be required to sign in. Distribution on physical media is not available in all countries.

[{"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Product":{"code":"SSRULV","label":"IBM Workload Scheduler for z\/OS"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"512","Edition":"","Line of Business":{"code":"LOB35","label":"Mainframe SW"}},{"Business Unit":{"code":"BU054","label":"Systems w\/TPS"},"Product":{"code":"SG19M","label":"APARs - z\/OS environment"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"512","Edition":"","Line of Business":{"code":"","label":""}}]

Document Information

Modified date:
02 September 2011