home *** CD-ROM | disk | FTP | other *** search
/ The Fred Fish Collection 1.5 / ffcollection-1-5-1992-11.iso / ff_disks / 200-299 / ff299.lzh / Rxil / test.rexx < prev   
OS/2 REXX Batch file  |  1989-12-30  |  1KB  |  64 lines

  1. /*   Test.rexx            */
  2.  
  3.  
  4. signal on ERROR
  5. signal on BREAK_C
  6.  
  7.  
  8. parse source type res called resolved ext host
  9.  
  10. say "Invoked as:   " || type
  11.  
  12. if res==1 then say "Result wanted"
  13. else say "No result requested"
  14.  
  15. say "Called as:    " || called
  16. say "Resolved as:  " || resolved
  17. say "Extension:    " || ext
  18. say "Host Address: " || host
  19.  
  20.  
  21. say "There are " || arg() || " arguments."
  22.  
  23. do i=1 to arg()
  24.     say "Arg " || i || " is " || arg(i)
  25. end
  26.  
  27. parse arg aline
  28. say "The Argument Line is: " || aline
  29.  
  30. options results
  31. say "Results are requested"
  32.  
  33. address "MYREXX_TEST_#1"
  34. say "Address set to" || address()
  35.  
  36. say
  37.  
  38. trace ?r
  39.  
  40. say "Let's go!  Now in trace mode.  Hit a CR on an empty line or" ,
  41. || "type  exit  to quit."
  42.  
  43.  
  44. exit 0
  45.  
  46.  
  47.  
  48. /*------------------------------------------------------------------*/
  49.  
  50. break_c:
  51.  
  52. say "*** Control-C recieved.  Stopped by user. ***"
  53. exit 5
  54.  
  55. /*------------------------------------------------------------------*/
  56.  
  57. error:
  58.  
  59. say "Error"
  60. exit 6
  61.  
  62. /*------------------------------------------------------------------*/
  63.  
  64.