Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Error handling for CALL statement

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX
View previous topic :: :: View next topic  
Author Message
chaoj

Active User


Joined: 03 Jun 2010
Posts: 103
Location: Dalian

PostPosted: Mon Feb 13, 2012 11:08 am    Post subject: Error handling for CALL statement
Reply with quote

When I use CALL to call another REXX code named ABCDEF, if can not find the ABCDEF , message shown below then REXX will end
Code:
    17 +++ CALL ABCDEF                       
Error running DIS, line 17: Routine not found


I want to handle this call error and don't want to end my REXX end , how can I do with this ?
Back to top
View user's profile Send private message

expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Mon Feb 13, 2012 12:50 pm    Post subject:
Reply with quote

Not have too many manuals where you are ?

Code:
SIGNAL ON SYNTAX NAME whatever

whatever:
YOUR ERROR HANDLING CODE
Back to top
View user's profile Send private message
chaoj

Active User


Joined: 03 Jun 2010
Posts: 103
Location: Dalian

PostPosted: Mon Feb 13, 2012 1:06 pm    Post subject:
Reply with quote

expat wrote:
Not have too many manuals where you are ?

Code:
SIGNAL ON SYNTAX NAME whatever

whatever:
YOUR ERROR HANDLING CODE


Thank you expat , I read the manuals and tried
Code:

CALL ON ERROR NAME trapname
CALL ON AILURE NAME trapname
CALL ON HALT NAME trapname

SIGNAL ON  ERROR NAME trapname
SIGNAL ON AILURE NAME trapname
SIGNAL ON HALT NAME trapname

but I missed the SIGNAL ON SYNTAX NAME trapname ......
SIGNAL ON SYNTAX NAME trapname worked for me , thank you !
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Mon Feb 13, 2012 2:00 pm    Post subject:
Reply with quote

I usually use SIGNAL ON SYNTAX as it picks up on all the other error types too.
Back to top
View user's profile Send private message
chaoj

Active User


Joined: 03 Jun 2010
Posts: 103
Location: Dalian

PostPosted: Mon Feb 13, 2012 2:04 pm    Post subject:
Reply with quote

expat wrote:
I usually use SIGNAL ON SYNTAX as it picks up on all the other error types too.


I learned another trick from you , Thanks !
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts ON 2 AND EVERY 1 - Statement ??? UmeySan COBOL Programming 2 Tue Jul 25, 2017 1:20 pm
No new posts DB2 Program abending without giving a... rahulgarg14 DB2 7 Mon May 29, 2017 8:10 pm
No new posts Getting error while opening a variabl... apandey1 COBOL Programming 5 Fri May 05, 2017 12:22 pm
No new posts Need help in REXX CALL program Raje1002 CLIST & REXX 5 Wed Apr 19, 2017 11:18 pm
No new posts Need help in triggering a PL1 module ... Varungv99 IMS DB/DC 0 Fri Apr 07, 2017 10:01 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us