home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / lang / rexx / 1502 < prev    next >
Encoding:
Text File  |  1993-01-21  |  2.4 KB  |  61 lines

  1. Newsgroups: comp.lang.rexx
  2. Path: sparky!uunet!noc.near.net!ns.draper.com!news.draper.com!MVS.draper.com!SEB1525
  3. From: SEB1525@MVS.draper.com (Steve Bacher)
  4. Subject: Re: rexx in tso environme
  5. Message-ID: <19930121171554SEB1525@MVS.draper.com>
  6. Sender: MVS NNTP News Reader <NNMVS@MVS.draper.com>
  7. Nntp-Posting-Host: mvs.draper.com
  8. Reply-To: seb1525@draper.com
  9. Organization: Draper Laboratory
  10. References: <1993Jan21.143553.22752@infodev.cam.ac.uk>
  11. Date: Thu, 21 Jan 1993 22:15:00 GMT
  12. Lines: 47
  13.  
  14. >>> 1) How does one create a Rexx program in TSO?
  15. >>Put it in a file called 'pgname.CLIST' with the first line of
  16. >>the file being a REXX comment e.g.   /* REXX */
  17. >
  18. >You can also put it in a file called MYFILE.EXEC and call it using
  19. >EXEC MYFILE EXEC.  ...
  20.  
  21. You can also set things up so that you can just type MYFILE and it
  22. will execute it (provided there isn't a built-in TSO command called
  23. MYFILE).  To do this, you need to take the following steps (some of
  24. which may already be done in your environment):
  25.  
  26.  (1) Create a partitioned data set (aka library or PDS) - let's call it
  27.      MY.CLIST - which will contain REXX execs as members.
  28.  
  29.  (2) Allocate that data set to file (ddname) SYSPROC via the TSO
  30.      ALLOC command, or have whoever administers TSO set things up
  31.      so that you get this set up at logon time.
  32.  
  33.  (3) Create your REXX exec as a member of MY.CLIST called MYFILE.
  34.      Make the first line contain the comment string /* REXX */ .
  35.  
  36.  (4) You can now type MYFILE and get your exec.  Note:  If MYFILE
  37.      does happen to conflict with a built-in program name, you can
  38.      get yours to run by typing %MYFILE with a percent sign.
  39.  
  40. Note: You can avoid the need to use the /* REXX */ comment by using
  41. the file SYSEXEC instead of SYSPROC and doing a few other things,
  42. but my experience has found the above far easier than trying to
  43. maintain separate TSO CLIST and TSO REXX libraries.
  44.  
  45. One good reason to want to do it this way is that it's much easier
  46. to pass parameters.  If your exec takes the string DON'T DO IT as
  47. a parameter, then using one of other methods you'd have to type
  48.  
  49.  EX MYFILE 'DON''T DO IT'   /* possibly with EXEC afterwards */
  50.  
  51. With this method you can just type
  52.  
  53.  MYFILE DON'T DO IT
  54.  
  55. Consult a TSO manual, or (better) talk to any moderately well-informed
  56. TSO person for assistance.
  57.  
  58. --
  59. Steve Bacher (Batchman)                 Draper Laboratory
  60. Internet: seb@draper.com                Cambridge, MA, USA
  61.