View previous topic :: View next topic
|
Author |
Message |
lalitha_gld
New User
Joined: 12 Jul 2006 Posts: 24
|
|
|
|
Hi,
I need to refer to the Return code of a step from a previous PROC, in another PROC within the same JCL.
For eg:
The JCL is
Jobstep1 EXEC Proc1
.....
Jobstep2 EXEC Proc2
Proc1:
PS1 EXEC PGM=Program1
If I need to refer to RC from step PS1 of PROC Proc1 in the next PROC Proc 2, how do I give it. AS per the manuals it is to be referred as 'stepname.procstepname.RC' . But when I give as below, I get the error 'DSS8565E - REFERBACK INVALID'.
Proc2:
IF (PS1.Jobstep1.RC = 0)
PS2 EXEC PGM=Program2
ENDIF |
|
Back to top |
|
|
murmohk1
Senior Member
Joined: 29 Jun 2006 Posts: 1436 Location: Bangalore,India
|
|
|
|
lalitha,
Shouldn't be -
Quote: |
jobstep.procstep.rc=0 |
|
|
Back to top |
|
|
lalitha_gld
New User
Joined: 12 Jul 2006 Posts: 24
|
|
|
|
The Syntax given as per the books are :
(stepname.procstepname.RC comparison value) - This is used for testing return code of a particular previous step in a catalogued procedure.
Let me know if there are any limitations in the usage within other procs or something.
Thanks,
Lalitha. |
|
Back to top |
|
|
murmohk1
Senior Member
Joined: 29 Jun 2006 Posts: 1436 Location: Bangalore,India
|
|
|
|
Lalitha,
Quote: |
stepname.procstepname.RC comparison value |
Please note stepname here represent jobstep name.
In your case -
Code: |
JOBSTEP1.PS1.RC=..... |
|
|
Back to top |
|
|
lalitha_gld
New User
Joined: 12 Jul 2006 Posts: 24
|
|
|
|
Tx for the info, it worked now.
I was confused with the naming, so gave the other way round !
Regards,
Lalitha. |
|
Back to top |
|
|
Phrzby Phil
Senior Member
Joined: 31 Oct 2006 Posts: 1042 Location: Richmond, Virginia
|
|
|
|
This always confuses me.
If you have a JCL checker, just try one way and check - it will tell you if wrong. |
|
Back to top |
|
|
|