======  Paul Gilmartin  ======  wrote    2006-08-20 02:16:
In a recent note, Thomas Berg said:

o Absence of facility to enumerate members of a compound variable.
Right, but is it really essential ?  AFAICS, You can solve this
quite easily programmatically.  (Albeit clumsy.)

How?  One can come close by coding a function package in some other
language, but if I understand correctly even that can't precisely
entirely copy a compound from one stem to another.

Well, I said clumsy.  When I have the need to remember the compund tails
I just saves them as strings, simple example:

Parse Pull xyz
stem.xyz = 1
tails = tails xyz
etc.

o Absence of instream data sets.
I dont understand this one.

Was I unclear?  Examples from other languages:

o JCL:

    //SYSIN  DD  DATA,DLM=XX
        ...
    XX

o POSIX Shell:

    cat <<XX
        ...
    XX

POSIX excels JCL in this respect because POSIX supports
symbol substitution in the "here-document".  I've used sourceline()
to achieve the effect in Rexx.

OK, I was also thinking of the JCL //SYSIN example, I just didn't understand 
what
the need/usage was.  But Your right about the limitation in rexx.
I usually uses stems for that effect.  I have somewhat hesitate to use 
sourceline()
as I have the feeling that it's to obscure or fragile (regarding changes in 
code).


I think so.  (Perhaps excluding "concurrent ATTCHPGM", but that's maybe
because TSO don't permit that ?)

This is IBM-MAIN, not TSO-REXX.  The base z/OS Rexx operates in
at least two z/OS environments other than TSO.

Yes.  I just thinked of the reason that it was originally designed that way.

"[D]o[es]n't permit"?  What happens if a program CALLed from TSO
issues an ATTACH SVC or several?

I don't know.  I have just read that TSO, in the way it invokes programs, don't
"allow" that possibility.


-- gil

--

__________________________

    Mundus Vult Decipi
__________________________

 They that can give up essential liberty to obtain a little temporary safety 
deserve neither liberty nor safety.
 - Benjamin Franklin

----------------------------------------------------------------------
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