Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 8657
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: 8657
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 Error executing Java program in OSGI ... danik56 CICS 0 Thu Apr 26, 2018 12:16 am
No new posts 3270 Data stream error Benchwarmer CICS 6 Tue Apr 17, 2018 12:06 am
No new posts Call COBOL or PLI with a click from w... vaibhav gs All Other Mainframe Topics 1 Mon Apr 16, 2018 7:29 pm
No new posts Handling result sets in the calling N... Rusikesh DB2 7 Fri Apr 13, 2018 12:25 am
No new posts VSAM file NOT Found error while proce... SumaReva CICS 5 Wed Apr 11, 2018 9:54 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us