home *** CD-ROM | disk | FTP | other *** search
- /* TestRouting.ems */
-
- options results
- signal on error
- signal on syntax
-
- parse arg from to flavor .
-
- if( ~show( 'l', "ems_rexx.library" ) ) then
- do
- if( ~addlib( "ems_rexx.library", 0, -30, 0 ) )then
- do
- say "Could not open ems_rexx.library"
- exit 10
- end
- end
-
- if from = '' then
- do
-
- say 'Usage: Rx TestRouting.ems <origin address> <destination address> <message flavor>'
-
- end
- else
- do
-
- say 'Routing a message as' flavor 'from' from 'to' to
- say
-
- call EMS_Tosser_TestRouting( from, 'to', 'flavor' )
-
- say 'Result: Send through' to 'as' flavor
-
- end
-
- call EMS_FreeScriptData()
- exit 0
-
- error:
- syntax:
-
- error_text = EMS_LastError()
-
- if error_text = '' then error_text = rc ErrorText( rc )
-
- say '| ***BREAK: error at' sigl error_text
-
- call EMS_FreeScriptData()
- exit rc
-