I like the REXXTRY program. It should prove very useful. But I am still
disappointed in my efforts to run showzos in batch mode. I'd like to run
it every week and keep a few months of generations on hand just for
debugging and historical reasons. But when I run it in batch, I only get
a few lines of output. When run in foreground, I get tons of output.
What am I missing here?? TIA


Ken Klein
Sr. Systems Programmer
[email protected]
502-495-5000 x7011

-----Original Message-----
From: IBM Mainframe Discussion List [mailto:[email protected]] On
Behalf Of Michel Castelein
Sent: Friday, June 05, 2009 6:23 AM
To: [email protected]
Subject: Re: CLIST equivalent to REXX STRIP

"Gilbert Saint-Flour" <[email protected]> wrote in message
news:<[email protected]>...
> On Thursday 04 June 2009 16:56, Paul Gilmartin wrote:
>
> >>I'm trying to find a way to translate this REXX instruction to a 
> >>CLIST equivalent ...
> >>
> > Why?
>
> I wrote a bunch of CLISTs until I started writing REXX execs in 1991, 
> but
I
> wrote very few CLISTs since then.  I wish a REXX exec could start with
PROC,
> like a CLIST can, so from time to time I write a CLIST just because of
PROC.
>
> BTW, this is the less-complex way I found to simulate REXX STRIP in a
CLIST:
>
> SET XXX = &STR(' AA-BB ')
> REXXTRY RETURN STRIP(&XXX)
> SET XXX=&STR(&RESULT)
>
> And this is the pure-REXX equivalent :
>
> XXX = ' AA-BB '
> XXX = STRIP(&XXX)
>
> REXXTRY is described here: http://gsf-soft.com/Freeware/REXXTRY.shtml
>
> --
>  Gilbert Saint-Flour
>  GSF Software
>  http://gsf-soft.com/
>

IMHO, there is indeed no CLIST equivalent.
&STR prevents the value ' AA-BB ' to be treated as an arithmetic
expression, but it also prevents the removal of the leading and trailing
blanks.
A kind of Catch-22 condition.

Michel Castelein
z/OS instructor & consultant
http://www.geocities.com/michelcastelein/

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions, send
email to [email protected] with the message: GET IBM-MAIN INFO Search
the archives at http://bama.ua.edu/archives/ibm-main.html

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html

Reply via email to