On Thu, 19 Nov 2020 11:30:02 -0800, Charles Mills wrote:
>It would appear to be a lot of work, but it would seem that "TSO format
>command parsing" and Rexx would be a natural marriage.
>
>I have never used IKJPARS, so I don't claim to be an expert, and others
>might disagree.
>
>The issue I am struggling with is that for all of Rexx's parsing power,
>which is of course legendary, it does not seem well-suited to classic "MVS"
>(for want of a better term) quoted strings. I am considering an EXEC that
>would accept parameters of
>
>'a quoted string', 'another quoted string', simpletoken1, simpletoken2, ...
>
The UNIX System services comes closer. The command:
myrexx 'a quoted string' 'another quoted string' simpletoken1
simpletoken2 ...
not only concatenates the tokens into ARG(1) but also assigns them to
__ARGV.1, __ARGV.2, __ARGV.3, __ARGV.4, ...
Regina has a command line option to select Rexx-like parsing (default)
or shell-like parsing.
in fact, IKJPARS weakens EXECIO. In CMS Rexx, I can simply say:
EXECIO 1 DISKW file-spec (string It's a string!
... (any expression). IKJPARS would prohibit this. I suspect this was
a deciding factor in not providing TSO Rexx EXECIO a STRING option
and requiring instead the cumbersome:
X.1 = 'It''s a string!'
'EXECIO 1 DISKW file-spec (stem X.'
-- gil
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN