Topic
  • 3 replies
  • Latest Post - ‏2011-06-09T15:30:52Z by WolfgangB
SystemAdmin
SystemAdmin
1086 Posts

Pinned topic JCL Submission with Dynamic Variable Substitution in RDZ v8.0

‏2011-05-05T16:35:10Z |
Hello,
in order to submit JCL using dynamic variables I've tried to apply the instructions in the tutorial but the variable in JCL is not 'replaced'

I'm started from a very 'simple JCL 'IBMUSER.IICZUT.JCL(JOB)'
//STEP11 EXEC PGM=IEFBR14

and I've create the 'dynamic' version of it

//STEP11 EXEC PGM=!PROGRAM!
In RDZ client(Window -> Preferences -> Menu Manager -> Actions and Menus ) I've created the rule for submit the jcl
My 'run option ' is(see attached file)

Submit,IBMUSER.IICZUT.JCL(JOB),PROMPT,2,Variable,Value,Submit,JCL PARAM,PROGRAM,$name

but when I submit the JCL passing the value IEFBR14 the 'variable' in JCL is not changed

Where is the error ?
Many thanks in advance
Giuseppe

1 //IBMUSERY JOB , JOB03674
// MSGCLASS=H,MSGLEVEL=(1,1),TIME=(,4),REGION=0M,COND=(16,LT)
2 //STEP11 EXEC PGM=|PROGRAM|
3 //
STMT NO. MESSAGE
2 IEFC620I UNIDENTIFIABLE CHARACTER | ON THE EXEC STATEMENT
2 IEFC620I UNIDENTIFIABLE CHARACTER | ON THE EXEC STATEMENT
Updated on 2011-06-09T15:30:52Z at 2011-06-09T15:30:52Z by WolfgangB
  • asrudd
    asrudd
    70 Posts

    Re: JCL Submission with Dynamic Variable Substitution in RDZ v8.0

    ‏2011-05-06T09:40:40Z  
    I assume from your name that you are in Italy. This may be a codepage problem. The JCL Submission facility requires US-encoded ! characters (X'5a') it seems to be getting | characters.
  • SystemAdmin
    SystemAdmin
    1086 Posts

    Re: JCL Submission with Dynamic Variable Substitution in RDZ v8.0

    ‏2011-05-06T15:45:25Z  
    • asrudd
    • ‏2011-05-06T09:40:40Z
    I assume from your name that you are in Italy. This may be a codepage problem. The JCL Submission facility requires US-encoded ! characters (X'5a') it seems to be getting | characters.
    As you can see in the sample below , I've changed ( working directly on RDZ ) the character
    '|' in '!' ( exadecimal X'5a') but I've still received the message

    Job's output :
    ***********************************************************************************
    1 //!USERID!X JOB , JOB03690
    // MSGCLASS=H,MSGLEVEL=(1,1),TIME=(,4),REGION=0M,COND=(16,LT)
    //*
    2 //STP0000 EXEC PGM=!PROGRAM!
    STMT NO. MESSAGE
    1 IEFC662I INVALID LABEL
    2 IEFC620I UNIDENTIFIABLE CHARACTER ! ON THE EXEC STATEMENT
    2 IEFC620I UNIDENTIFIABLE CHARACTER ! ON THE EXEC STATEMENT
    ******************************************************************************
    both variables are not substituted

    SOME DETAIL REGARDING

    MENU MANAGER==> Actions and menu==> run options

    The string used is
    Submit,IBMUSER.IICZUT.JCL(JOB),PROMPT,2,Variable,Value,Submit,JCL PARAM,USERID,$userid,PROGRAM,$name

    the field 'use existing action contains'
    com.ibm.ftt.ui.menumanager.mfivarsubsaction
    Post Scriptum:

    Yes, I'm writing from Italy ! :-)

    Bye and many thanks in advance
  • WolfgangB
    WolfgangB
    2 Posts

    Re: JCL Submission with Dynamic Variable Substitution in RDZ v8.0

    ‏2011-06-09T15:30:52Z  
    ... looks like a ! in a preceding comment line - resulting in fooling the parser :-)

    Wolfgang