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 Need help with below DB2 error ashek15 DB2 3 Sat Mar 18, 2017 5:56 am
No new posts FINDREP Syntax Error seahawk789 DFSORT/ICETOOL 4 Thu Mar 09, 2017 10:11 pm
No new posts INVOKE WEBSERVICE error danik56 CICS 11 Thu Mar 09, 2017 11:52 am
No new posts Row not found Sql error GaganGarg DB2 7 Tue Mar 07, 2017 6:29 am
No new posts DB2 SQL Error: SQLCODE=-440, SQLSTATE... kishpra DB2 1 Sat Feb 18, 2017 2:31 am


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