I want to reinitialize a stem variable so i can reuse it with new data.
is it xxx.0 = 0 ? or just xxx. = ''? or what
grateful as always
Mark H.
----------------------------------------------------------------------
For TSO-REXX subscribe / signoff / archive access instructions,
send email to LIST...@VM.MARIST.EDU with the message: INFO TSO-REXX
xxx. = ''
Or, you can use:
DROP xxx.
Jeff
x.0 will give you the total number of stems
"Harrington, Mark"
<MHarrington@MEDNE To: TSO-...@VM.MARIST.EDU
T.UCLA.EDU> cc:
Sent by: TSO REXX Subject: initializing a stem variable
Discussion List
<TSO-...@VM.MARIS
T.EDU>
03/31/2003 05:49
PM
Please respond to
TSO REXX
Discussion List
> I want to reinitialize a stem variable so i can reuse it with new data.
> is it xxx.0 = 0 ? or just xxx. = ''? or what
xxx. = 0
>>>> x.0 will give you the total number of stems
This x.0 assignment doesn't happen universally. Execio and outtrap and
other functions do set the stemname.0 variable to contain a count of the
elements of the stem.
But normal stem processing does not.
By convention, most of the tools and functions I write do so. Many others
do also, I believe.
But that is additional code that must be written.
E.g.:
do i=1 to 10;
x.i= 100/i;
end;
say x.0
>> X.0
David Seibert
Compuware Corporation Database Product Architect
Dave.S...@compuware.com
The contents of this e-mail are intended for the named addressee only. It
contains information that may be confidential. Unless you are the named
addressee or an authorized designee, you may not copy or use it, or disclose
it to anyone else. If you received it in error please notify us immediately
and then destroy it.
I'm familiar with the Execio command but not the Outtrap command. The book
I'm using to learn how to create REXX procedures, 'MVS TSO, Commands and
Procedures, by Doug Lowe', doesn't even mention the Outtrap command. Will
someone describe the Outtrap command and provide a good example? I'd also
appreciate it if someone would recommend a more comprehensive book on REXX
procedures that I could purchase.
Thanks,
Lucious Walls
SPAWAR ITC (Washington)
asi...@bupers.navy.mil
703-693-3036 DSN 223-3036
-----Original Message-----
From: Seibert, Dave [mailto:Dave_S...@COMPUWARE.COM]
Sent: Tuesday, April 01, 2003 11:01 AM
To: TSO-...@VM.MARIST.EDU
Subject: Re: initializing a stem variable
you better hope that you have at least 30 mb of e-mail available ! :)
CALL OUTTRAP "JCL."
"LISTDS 'xxxx.PROD.xxxx ' MEMBERS"
CALL OUTTRAP "OFF"
this traps the member names in the pds and puts them in a stem variable
called "jcl."
you can then access these member names in the stem variable with an index.
ex: jcl.1 = mcj013
jcl.2 = mcj014
jcl.3 = mcj015
this is just one example of how to use outtrap.
book manager should tell you more
Here's an example that will get a list of all the members in a PDS into a
compound variable. Basically what OUTTRAP does is redirect the lines of
text that would normally go to your terminal to the compound variable:
DSN = data.set.name
xxx. = '' /* Clear array */
X = OUTTRAP('xxx.')
Address TSO "LISTDS '"DSN"' MEMBERS" /* Get dir list */
X = OUTTRAP('OFF')
Do i = 7 to xxx.0
MEMNAME = STRIP(SUBSTR(xxx.i,3,8))
If MEMNAME = '' then /* continued ALIAS info */
Iterate
/* handle member name */
End i
If you just issue the command "TSO LISTDS data.set.name MEMBERS" (for a real
dataset) you'll see why the above loop starts with the 7th line.
Jeff
http://www-1.ibm.com/support/docview.wss?rs=0&org=SW&doc=4000232&loc=en_us&loc=en-us
http://publibfp.boulder.ibm.com/cgi-bin/bookmgr/FINDBOOK?filter=rexx
>>> ASI...@BUPERS.NAVY.MIL 04/01/2003 11:01:32 AM >>>
Hello List:
say x.0
>> X.0
This electronic mail transmission may contain confidential information and is intended only for the person(s) named. Any use, copying or disclosure by any other person is strictly prohibited. If you have received this transmission in error, please notify the sender via e-mail.
-----Original Message-----
From: Glenn Walko [mailto:GWA...@OPPENHEIMERFUNDS.COM]
Sent: Tuesday, April 01, 2003 1:14 PM
To: TSO-...@VM.MARIST.EDU
Subject: Re: initializing a stem variable
"Frank Clarke" <ni...@mindspring.com> schreef in bericht
news:tsph8vko5n6j72kcr...@4ax.com...