It is not possible to use the TEST statement of IKJTSOxx to cause TEST to treat 
assignment statements as user subcommands. Furthrt, we it possible you'd need 
to duplicate the functionality of the existing assignment statement and 
distinguish a normal assignment from your version.

It is possible to process an assignment statement that you read as a 
subcommand; you just need to treat it as a special case instead of relying on 
IKJSCAN. Your code needs to recognize it as an assignment statement and pass 
the entire statement to IKJPARSE.


--
Shmuel (Seymour J.) Metz
http://mason.gmu.edu/~smetz3

________________________________________
From: IBM Mainframe Discussion List [IBM-MAIN@LISTSERV.UA.EDU] on behalf of 
Joseph Reichman [reichman...@gmail.com]
Sent: Tuesday, May 9, 2023 9:32 AM
To: IBM-MAIN@LISTSERV.UA.EDU
Subject: Re: TSO IKJOPER question

Seymour

I can only say you are amazing

It seems it is not possible

To customize an operator like ‘=‘

As the subcommand

Must appear the first entered text

Talking in IKJTSOxx

subcmd(scmd,LOAD1)

Thank you

> On May 9, 2023, at 9:12 AM, Seymour J Metz <sme...@gmu.edu> wrote:
>
> I believe that the optional source tapes for OS/360 and OS/VS2 3.8 are 
> archived (CBTTAPE?), so it should be possible to examine the source code for 
> TEST. I would expect it to be something like
>
>         IKJOPER 'Err label',OPERND1=OP1,RSVWD=OPLIST,OPERND2=OP2
> OP1  IKJTERM 'Err label', ...
> OPLIST   IKJRSVWD 'Err label'
>         IKJNAME '='
> OP2  IKJTERM 'Err label', ...
>
> The = is the operator, not a subcommand. Normally a subcommand begins with a 
> subcommand name and you use IKJSCAN to locate the offset to the subcommand 
> text; things like assignment statements are special cases.
>
>
> --
> Shmuel (Seymour J.) Metz
> http://mason.gmu.edu/~smetz3
>
> ________________________________________
> From: IBM Mainframe Discussion List [IBM-MAIN@LISTSERV.UA.EDU] on behalf of 
> Joseph Reichman [reichman...@gmail.com]
> Sent: Tuesday, May 9, 2023 7:37 AM
> To: IBM-MAIN@LISTSERV.UA.EDU
> Subject: TSO IKJOPER question
>
> Hi
>
>
>
> I am just wondering when using IKJOPER (operand) and for clarity's sake I
> would like to use an example from TSO TEST so I would imagine the '=' of TSO
> TEST is an IKJOPER
>
> Used to modify storage.
>
>
>
> The subcommand is '='
>
>
>
> Does the subcommand have to be the first operand I mean clearly in the case
> of for example 3R?=X'00000001' the subcommand is the second parameter
>
>
>
> If someone could clarify this would appreciate it
>
>
>
> thanks
>
>
> ----------------------------------------------------------------------
> For IBM-MAIN subscribe / signoff / archive access instructions,
> send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN
>
> ----------------------------------------------------------------------
> For IBM-MAIN subscribe / signoff / archive access instructions,
> send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN

Reply via email to