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