home *** CD-ROM | disk | FTP | other *** search
- Comments: Gated by NETNEWS@AUVM.AMERICAN.EDU
- Path: sparky!uunet!gatech!paladin.american.edu!auvm!PSUHMC.BITNET!LWORSFOL
- Message-ID: <REXXLIST%92081415043714@OHSTVMA.IRCC.OHIO-STATE.EDU>
- Newsgroups: comp.lang.rexx
- Date: Fri, 14 Aug 1992 14:42:26 EDT
- Sender: REXX Programming discussion list <REXXLIST@UGA.BITNET>
- From: "Lynne J. Worsfold" <LWORSFOL@PSUHMC.BITNET>
- Subject: Re: Stem vars as arguments?
- In-Reply-To: Message of Thu,
- 13 Aug 1992 16:48:23 GMT from <chappy@DUTS.CCC.AMDAHL.COM>
- Lines: 57
-
- On Thu, 13 Aug 1992 16:48:23 GMT Chappy Cole said:
- .
- .
- >
- >/* Top level exec which calls another to set the stem 'Opts.' */
- >'EXEC STEMFILL OPTS.' /* Pass stem name as argument */
- >do i = 1 to Opts.0
- > say 'Opts.'i '=' Opts.i
- >end i
- >exit
- >
- >/* STEMFILL EXEC - Assigns hardcoded values to the passed stem in the calling
- >exec */
- >parse upper arg Stem .
- >Mystem.0 = 4
- >Mystem.1 = 'A'
- >Mystem.2 = 'B'
- >Mystem.3 = 'Z'
- >Mystem.4 = 'Y'
- >'PIPE stem Mystem.' , /* Put 'Mystem.' values into pipeline */
- > '| stem' Stem '1' /* Put stream values into callers 'stem' */
- >exit rc
- >
- >That is one way to solve your problem on VM/CMS with PIPELINES. However, it
- .
- .
- I am using CMS 8 with VM/ESA and I've tried this example and it works
- just swell!!!! I probably confused you because of how I phrased my
- question - I apologize because I haven't mastered the Rexx lingo yet.
- .
- .
- >Chappy
-
- I want to thank everyone on this list for their help and their examples.
- I have not yet finished going through all the responses that I have rec'd
- but, so far this example is the closest to what I want to do and the
- easiest for me to understand at this point.
-
- Just as a reminder, my original question was:
- How can I declare (apparently an inappropriate word) values for stem
- variables external to the main Rexx program in CMS? I wanted to keep the
- main Rexx program generic and keep the values for the stem variables
- in another file - this will make changes to the values of the stem variables
- easier. The "big picture" goal for this main Rexx program is to
- read in data from an electronic form which a faculty member has filled-
- out and then add/update an SQL database with the information.
- My progress to that goal is slow, but steady. I'm sure you'll
- be hearing from me again.
- Thanks again for everyone's help! I'm impressed with the amount of
- Rexx & Pipes I have learned this week!!!!!
-
- -----------------------------------------------------------------------
- Lynne J. Worsfold Pennsylvania State University
- Project Leader/Information Systems Milton S. Hershey Medical Center
- Internet: lworsfol@psuhmc.hmc.psu.edu 140 Sipe Ave
- Voice: (717) 531-6278 Hershey, PA 17033
- -----------------------------------------------------------------------
-