On Wed, 23 Nov 2016 09:01:17 -0600, Donald Likens wrote:
>
>Here is a working example:
> ...
> 000002 PARSE SOURCE SRCINFO;
> 000003 parse var SRCINFO TSO COMMAND CMD DDNAME DSNAME exec TSO ISPF TOKEN;
> ...
>Results of rexx:
>
>TSO
> TSSDON.MEAS.INSTALL
> ISPF
> ***
>
However, if the EXEC comes from SYSEXEC, DSNAME is returned as "?".
The recent "Steplib APF failure" thread explains in tedious detail why it's
difficult to extract such information from the DEB once the library is OPENed.
On Tue, 22 Nov 2016 12:52:18 -0600, John McKown wrote:
>
>Just to be my normal weird self, none of this will work in a REXX exec is
>run by reading it / creating it dynamically in memory and passing the
>in-memory EXEC to IRXEXEC.
>
And here you've motivated me to YA RCF:
Hello, MHVRCFs,
In: • z/OS
• z/OS 2.1.0
• z/OS TSO/E
• z/OS TSO/E REXX Reference
• Keyword instructions
• PARSE
I read:
...
5. Name of the data set from which the exec was loaded. If the name
is not known, this token is a question mark (?). If the name contains
any blank characters (which is possible in a dsname of file system),
the blank characters are replaced by null characters (X'00') within this
token.
I believe "dsname of file system" is intended to be "dsname *or* file system".
It might clarify further to state "... or UNIX filename".
...
9. Eight character user token. This is the token that is specified in the
PARSETOK field in the parameters module (see Characteristics of a
Language Processor Environment).
What happens if the token contains x'40' characters, or even x'4040'?
This might happen if the user passes a 64-bit address as a user token.
... so it's almost explained; you can control it. I'll wait to see what
they say about the x'40' situation.
-- gil
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN