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: 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 IEW2456E error when link-editing a C ... Senthilraj JCL & VSAM 0 Fri Oct 13, 2017 3:12 pm
No new posts FTP Skip or ignore error and process ... AJAYREDDY All Other Mainframe Topics 3 Wed Sep 27, 2017 8:12 pm
No new posts Assembler Macro Copybook converted to... Ziquilix PL/I & Assembler 4 Tue Sep 26, 2017 3:07 am
No new posts FUSE - IBM MQ - CICS integration error Kevin Vaz CICS 1 Mon Sep 18, 2017 4:31 pm
No new posts Reply MQ open error Vignesh Sid COBOL Programming 6 Thu Sep 07, 2017 6:02 pm

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