View previous topic :: View next topic |
Author |
Message |
Premkumar Moderator
Joined: 28 Nov 2002 Posts: 77 Topics: 7 Location: Chennai, India
|
Posted: Mon Dec 02, 2002 11:07 pm Post subject: How to set return code in Rexx BATCH programs? |
|
|
Code Exit statement with RC for programs without ISPF environment.
Use the following code for programs with ISPF environment.
Code: |
zispfrc = rcode
address ispexec "vput (zispfrc) shared"
|
|
|
Back to top |
|
|
rajvasan Beginner
Joined: 10 Dec 2002 Posts: 14 Topics: 4
|
Posted: Fri Jan 03, 2003 2:58 am Post subject: |
|
|
Prem,
I have a question. The piece of code, that you had given for the ISPF environment, what is the significance and where can it be used ?
Thanks,
Rajvasan |
|
Back to top |
|
|
Premkumar Moderator
Joined: 28 Nov 2002 Posts: 77 Topics: 7 Location: Chennai, India
|
Posted: Fri Jan 03, 2003 5:27 am Post subject: |
|
|
Rajvasan,
When you are executing ISPF dialogs in batch, the only way you can set the return-code of the step is to set the ZISPFRC variable in shared pool.
Hope this helps. |
|
Back to top |
|
|
|
|