ESP Workload Automation

 View Only
  • 1.  Assign Value to  user define variable in JOBONCSF

    Posted Feb 18, 2018 02:55 AM

    Hi all,

     

    How do I assign user define variable in REXX  utility JOBONCSF.  I am trying to assign variable SWITCH value of Y  when job DATA* completed so that the job TWGASCS2 can use that value . I need to assign value  within the  REXXON cause I have some further  if statement checking .  Sample code bellow is my current coding on this.

     

    Any suggestion and advice  would be much appreciate.

     

    JOB TWGASCS2                                  
     SUBAPPL TEST01   WAIT                           
     REXXON PROC                                     
     J = JOBONCSF('DATA*','X')                                                
      DO I= 1 TO J                                   
         IF XAPPLG.I = CLANGVAR('%ESPAPGEN') THEN DO 
             SAY 'JOBNAME ' XJOBN.I                  
             SAY 'PNODE ' XPNODE.I                   
             SAY 'AGENT ' XAPPLG.I                   
             SAY 'STATUS ' XSTATUS.I                 
             SAY 'JOBNO  ' XJOBNO.I                   
            SWITCH1  =  'Y'            /* seem not working  value do not get  assign                     
         END                                         
      END                                            
     REXXOFF 
     SE 'SWITCH = %SWITCH ' U(ORMA001) /*display value of switch from joboncsf
     RUN TODAY
    ENDJOB   

     

     

     

     

    Thanks

     

    MSA  



  • 2.  Re: Assign Value to  user define variable in JOBONCSF

    Posted Feb 19, 2018 02:15 AM

    false alarm I manage to get it to work using  bellow syntax . CA need to standardize variable assignment

     

     "SWITCH1  = 'Y' "   



  • 3.  Re: Assign Value to  user define variable in JOBONCSF
    Best Answer

    Posted Feb 19, 2018 04:42 AM

    Hi,

     

    the syntax to be used is "SWITCH1='Y'"

     

    See the following link:

    https://docops.ca.com/ca-workload-automation-esp-edition/11-4/en/advanced-using/use-rexx/update-a-symbolic-variable

     

    Thanks and best regards,

     

    Faouzia