IBM Workload Automation & Workload Scheduler

IBM Workload Automation & Workload Scheduler

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only

Using //*%OPC COMP in a Centralized Script on a z-Centric workstation

  • 1.  Using //*%OPC COMP in a Centralized Script on a z-Centric workstation

    Posted Wed January 22, 2025 07:08 AM

    Hi 
    I have observed a difference using //*%OPC CCOMP on a z-Centric workstation and in a JCL in a mainframe job. 
    If you have a statement like this
    //*%OPC BEGIN ACTION=INCLUDE,COMP=(&OADID..EQ.(GT%UL*)) 
    //*%OPC SETFORM OCFRSTC=(YYMMDD)                        
    //*%OPC SETVAR TULT=(OCFRSTC-1CD)                       
    //*%OPC SETVAR TF=('ALM')                               
    //*%OPC END ACTION=INCLUDE

    It works fine in the first run. 

    If you try to rerun the job you will get a OJCV because an attempt to solve the variable %UL is done. 

    //*>OPC BEGIN ACTION=INCLUDE,COMP=(DKSULGTASSERVCLD.EQ.(DK%UL*)) 
    //*>OPC SETFORM OCFRSTC=(YYMMDD)                                 
    //*>OPC SETVAR TULT=(OCFRSTC-1CD)                                
    //*>OPC SETVAR TF=('ALM')                                        
    //*>OPC END ACTION=INCLUDE


    A similar setup in a Mainframe jcl works fine



    ------------------------------
    klaus nielsen
    Lead Production Planner
    Danske Bank
    Glostrup
    ------------------------------