Hi all, ESP v11.4.
We need to be able to cancel a job that runs in the uss and apparetnly there can be more than one in jes.
If we have in our appl simply issue a cancel, such as:
C jobname such as this coding below:
IF JOBONQ('A#BIEGA7','','E') THEN -
DO
VS 'ROUTE AAAA,C A#BIEGA7'
.
.
If there is more than one out there in jes, it will squawk with: DUPLICATE NAME FOUND- REENTER COMMAND WITH 'A=' KEYWORD
So we thought we can try doing a cancel jobname with its asid: C jobname,A=asid
However, I am having trouble passing the asid value out of the rexxon or running the cancel job,A=asid inside the REXXON:
given:
JOB MIKCANJB LINK PROCESS
IF ESPATIME >= '10.38.00' THEN -
DO
IF JOBONQ('A#BIEGA7','','E') THEN -
DO
REXXON
ADDR=ASID(A#BIEGA7) <<< this nabs the jobs asid just fine
say "address space of A#BIEGA7 is " ADDR
VS 'ROUTE AAAA,C A#BIEGA7,A='ADDR << but then trying to USE it inside the rexxon doesn't work
REXXOFF
ENDDO
ENDDO
RUN ANY
ENDJOB
It llooks like rexxon does not like my VS 'route yada yada' line;
I've tried prefixing same with address mvs, I've tried all kinds of nesting quotes and double quotes permutations, but
even though I can trap the ASID in the rexxon.......rexxon won't let me then issue that
cancel command due to it not recognizing any of the syntax (which is fine outside of rexxon)
heres' what I get when I simulate:
==>address space of A#BIEGA7 is 377 << that is the correct asid
VS ROUTE AAAA,C A#BIEGA7,A=377 <<< rexxon does not like anything after the word ROUTE tho this works aok
==>ESP906E INVALID KEYWORD, AAAA outside of rexxon
==>ESP906E C AMBIGUOUS
==>ESP906E INVALID KEYWORD, A#BIEGA7
==>ESP906E INVALID KEYWORD, A=377
I'm sure the fix is obvious, but not to my eyes.......
thanks,