MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

User Abend using REXX

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> TSO and ISPF
View previous topic :: View next topic  
Author Message
Phantom
Data Mgmt Moderator
Data Mgmt Moderator


Joined: 07 Jan 2003
Posts: 1056
Topics: 91
Location: The Blue Planet

PostPosted: Wed Sep 21, 2005 6:19 am    Post subject: User Abend using REXX Reply with quote

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
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12378
Topics: 75
Location: San Jose

PostPosted: Wed Sep 21, 2005 7:37 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
Phantom
Data Mgmt Moderator
Data Mgmt Moderator


Joined: 07 Jan 2003
Posts: 1056
Topics: 91
Location: The Blue Planet

PostPosted: Wed Sep 21, 2005 7:47 am    Post subject: Reply with quote

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
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12378
Topics: 75
Location: San Jose

PostPosted: Wed Sep 21, 2005 7:52 am    Post subject: Reply with quote

Phantom,

May be you can use IRXTERMA. check this link

http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/IKJ4A330/B.0?DT=20020521161835

Hope this helps...

Cheers

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Phantom
Data Mgmt Moderator
Data Mgmt Moderator


Joined: 07 Jan 2003
Posts: 1056
Topics: 91
Location: The Blue Planet

PostPosted: Wed Sep 21, 2005 8:07 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> TSO and ISPF All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group