View previous topic :: View next topic
|
Author |
Message |
chaoj
Active User
Joined: 03 Jun 2010 Posts: 103 Location: Dalian
|
|
|
|
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 |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Not have too many manuals where you are ?
Code: |
SIGNAL ON SYNTAX NAME whatever
whatever:
YOUR ERROR HANDLING CODE |
|
|
Back to top |
|
|
chaoj
Active User
Joined: 03 Jun 2010 Posts: 103 Location: Dalian
|
|
|
|
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 |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
I usually use SIGNAL ON SYNTAX as it picks up on all the other error types too. |
|
Back to top |
|
|
chaoj
Active User
Joined: 03 Jun 2010 Posts: 103 Location: Dalian
|
|
|
|
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 |
|
|
|