On Mon, 18 Nov 2019 19:35:31 +0000, Seymour J Metz wrote:
>A program designed to run as a jobstep expects a parameter list whose first
>word points to a halfword length field followed by a character string of that
>length. The Initiator will always flag the first word with an end-of-list bit.
>So if the program follows normal rules, you can't pass it an address that way.
>
No. That end-of-list bit is set in the address of the PARM, not in the PARM.
So, PARM='(' (x-4d') results in '(', not 'D' (x'CD'). And that bit has little
effect except for branch-and-set-mode.
How is PARM passed to an AMODE 64 program?
>Of course, another, unauthorized, program can call it with a longer parameter
>list, but then it won't be running authorized and there is no exposure.
>
Yes.
-- gil
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN