Don,
It works using the default ARGS in the APPL, as below:
LINUX_JOB TESTE
AGENT LXXX
SCRIPTNAME /tmp/teste
ARGS 'N '
ENDJOB
But I want to give the option of an alternative ARG to the operator in the case of resubmission , and I tried in this way:
LINUX_JOB TESTE
AGENT LXXX
SCRIPTNAME /tmp/teste
/* Alterative PARM */
IF USER1='%ESPAPJOB' THEN ARGS '%USER2'
/* Default PARM */
ELSE ARGS 'N '
ENDJOB
In this case, if the operator doesn't input USER1/USER2, the script will use the default ARG ('N ').
But if the operator input USER1:TESTE and USER2:S , the ESP will remove the spaces after the 'S'.
I've tried input USER2 with quotes (USER2:'S ') and the Director show me a error of "Invalid 2nd user data string".
I've tried input USER2 with doublequotes (USER2:"S ") and occurs SUBERROR on the Director, and TSO show me:
ESPML0528E ERROR OCCURRED PROCESSING EVENT XXXLAB.LFTST IN APPL LFTST2.128
ESPML0027E READVAL "ESPTRUSR(BXXXX)ESPTRTYPE(T)RESUB_USER() RESUB_USER(BXXXX) USER1(TESTE
ESPML0001E UNBALANCED PARENTHESES
ESPML0027E IF USER1='%ESPAPFULLNAME' THEN ARGS /tmp/teste '%USER2'
ESPML0013E VARIABLE USER1 NOT DEFINED