View previous topic :: View next topic
|
Author |
Message |
Ali_gezer
Active User
Joined: 06 Apr 2021 Posts: 123 Location: argentina
|
|
|
|
Hello, how are you?
I have a problem with this. I have to check with a step job cond parameter if the ealier step who executes a procedure gives a 2 return code.
Code: |
//CHECK1 EXEC ARCHFREE,ARCH='file.example'
//STEP444 EXEC PGM=ICEGENER,COND=(2,EQ,CHECK1.ARCHFREE)
|
When I do this, I receive a error message in step444.
''10 IEF645I INVALID REFERBACK IN THE COND FIELD ''
this same error happens even if I put (2,EQ,CHECK1) or (2,EQ,ARCHFREE)
Can anybody give me a clue?
Thanks in advance. |
|
Back to top |
|
|
sergeyken
Senior Member
Joined: 29 Apr 2008 Posts: 2126 Location: USA
|
|
|
|
Change the reference: instead of procedure name use the step name within that procedure.
FYI: any JCL procedure may include multiple job steps.
BTW: do you know that the parameter COND specifies the condition to skip the job step where it is used, not to allow its execution? |
|
Back to top |
|
|
Ali_gezer
Active User
Joined: 06 Apr 2021 Posts: 123 Location: argentina
|
|
|
|
sergeyken wrote: |
Change the reference: instead of procedure name use the step name within that procedure.
FYI: any JCL procedure may include multiple job steps.
BTW: do you know that the parameter COND specifies the condition to skip the job step where it is used, not to allow its execution? |
thank you.
//STEP444 EXEC PGM=ICEGENER,COND=(2,EQ,CHECK1.PASO01)
this worked. |
|
Back to top |
|
|
prino
Senior Member
Joined: 07 Feb 2009 Posts: 1312 Location: Vilnius, Lithuania
|
|
|
|
Don't use "COND" anymore, IBM added IF..THEN..ELSE..ENDIF logic about a zillion years ago. |
|
Back to top |
|
|
Ali_gezer
Active User
Joined: 06 Apr 2021 Posts: 123 Location: argentina
|
|
|
|
prino wrote: |
Don't use "COND" anymore, IBM added IF..THEN..ELSE..ENDIF logic about a zillion years ago. |
yes, I use if but there are people who control the job stream that told us that we have to put the cond parameter this time because if we dont do that the stream is not going to work... something like that. |
|
Back to top |
|
|
dneufarth
Active User
Joined: 27 Apr 2005 Posts: 420 Location: Inside the SPEW (Southwest Ohio, USA)
|
|
|
|
Old school way how to understand COND test(s) action
NERTS: any are true, skip (this step)
I sure preferred IF/THEN when it arrived. |
|
Back to top |
|
|
|