AnsweredAssumed Answered

REXX to generate ESP Variable

Question asked by ekammer1 on Dec 12, 2017
Latest reply on Dec 13, 2017 by ekammer1

CA ESP EE 11.4

 

I am trying to pass a variable generated by REXX to an NT_JOB. The REXX code works fine. It is set to parse the full file name and send just a specific value to the next wob. In this case “Kammerer”. However, I keep getting “SYMBOL ESPNAME NOT DEFINED”. Not sure what is going wrong. Any thoughts or ideas would be appreciated.

 

I did find this on the forums, https://communities.ca.com/message/99169673 but I am not even able to create the ESP variable to pass it along.

 

Event level file trigger

EVENT ID(A079011.A079011A) SYSTEM(-)  REPLACE           

CALENDAR FISCAL                                          

INVOKE 'A079011.ESP.PROCLIB(ESPWTFL)'                    

WOBTRIG FILE_TRIGGER Agent(SCWKLDT1) -                  

        FileName('\\D:\TEST\ERIC\kammerer\*.TXT') CREATE -

        State(Monitored) Status('Monitored for CREATE')  

/*********************************************************************/

APPL ESPWTFL

 

JOB A079011A TASK SELFCOMPLETING      

  RUN ANY                             

  REXXON GEN                          

  FN=CLANGVAR('!ESPWTFILE')           

  NAME=TRANSLATE(FN, ,'-/\.',' ')     

  PARSE VAR NAME W1 W2 W3 W4 W5 W6    

  "ESPNAME=' "W4" ' "                 

  SAY 'A079011 VAR IS >>>>>>>>>>>> ' W4

  REXXOFF                             

  ECHO !ESPNAME                     

ENDJOB          

 

/*********************************************************************/

OUTPUT FROM THE LOG

A079011 VAR IS >>>>>>>>>>>>  kammerer                                     
ESP528E ERROR OCCURRED PROCESSING EVENT A079011.A079011A IN APPL ESPWTFL.31
   ARGS /C echo !ESPNAME                                                  
ESP2740W SYMBOL ESPNAME NOT DEFINED                                          

Outcomes