View previous topic :: View next topic |
Author |
Message |
Phantom Data Mgmt Moderator

Joined: 07 Jan 2003 Posts: 1056 Topics: 91 Location: The Blue Planet
|
Posted: Wed Sep 21, 2005 6:19 am Post subject: User Abend using REXX |
|
|
Hi,
One of my colleague asked me this question today. "Is there any way to force an User Abend condition thro' REXX".
She is invoking a rexx program from a JCL and wants to force an User abend code under few conditions. Normally if we set any value to "RC", the same comes out a Step return code in the JCL. But is there any way to set a Abend Code ?
My suggestion was to return a non-zero value and in Step 2 have a SORT with NULLOUT=RC16, but we would like to know if this could be handled directly using REXX.
Thanks,
Phantom |
|
Back to top |
|
 |
kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12378 Topics: 75 Location: San Jose
|
Posted: Wed Sep 21, 2005 7:37 am Post subject: |
|
|
Phantom,
Using IKJEFT01 to execuete your rexx execs will always end with return code 0. Try using IKJEFT1B instead. Use EXIT 20 which will be used as a return code of the step. You can also try issuing a CALL to non-existent load module to force an abend.
Kolusu _________________ Kolusu
www.linkedin.com/in/kolusu |
|
Back to top |
|
 |
Phantom Data Mgmt Moderator

Joined: 07 Jan 2003 Posts: 1056 Topics: 91 Location: The Blue Planet
|
Posted: Wed Sep 21, 2005 7:47 am Post subject: |
|
|
Kolusu,
Quote: |
CALL to non-existent load module to force an abend.
|
I thought of same thing. But can there be any control over the Abend code value as such ? Call to non-existent load will end up in System abend. Can I have Uxxx ?
Thanks,
Phantom |
|
Back to top |
|
 |
kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12378 Topics: 75 Location: San Jose
|
|
Back to top |
|
 |
Phantom Data Mgmt Moderator

Joined: 07 Jan 2003 Posts: 1056 Topics: 91 Location: The Blue Planet
|
Posted: Wed Sep 21, 2005 8:07 am Post subject: |
|
|
Thanks a lot kolusu,
What a Coincidence !!!!...I was just browing through REXX documents (.PDF) and ended up in the same thing (IRXTERM & IRXTERMA).
It has explantion on IRXTERM for almost 4-5 pages but I "Don't Know how to Invoke the command". Need to go through the document again leisurely !!!
Thanks,
Phantom |
|
Back to top |
|
 |
|
|