The TSO paradigm (including its protege Clist) is unique among interactive 
applications in allowing for three kinds of parameters:

-- Positional, which must appear first in the order specified in the model

-- Simple keywords, which can appear anywhere after positionals and take 
on only their own name or null as value

-- Value keywords, which can appear anywhere after positionals and take on 
the value specified in parentheses 

tso-command pos1 pos2 pos3 simple1 value-kwd1() value-kwd2() simple2 
simple3 ...

Rexx does not have all three types parameters, but folks have written 
(fairly elaborate) routines that simulate TSO/Clist processing. One power 
of TSO commands is that these keywords are managed by the command 
processor itself. Prompting to resolve ambiguity, for example, is handled 
before user code gets control. Once the user-written code gets control, 
all parameters are presented to it. Any further prompting would be to 
resolve logical incongruities, not structural. All this comes at the 
expense of the command writer, who must satisfy some pretty rigorous 
requirements to make the command work as intended. It can take a while for 
the occasional command writer to get it right. ;-)

.
.
J.O.Skip Robinson
Southern California Edison Company
Electric Dragon Team Paddler 
SHARE MVS Program Co-Manager
626-302-7535 Office
323-715-0595 Mobile
jo.skip.robin...@sce.com



From:   Walt Farrell <walt.farr...@gmail.com>
To:     IBM-MAIN@LISTSERV.UA.EDU, 
Date:   06/30/2014 08:49 AM
Subject:        Re: IKJPOSIT question
Sent by:        IBM Mainframe Discussion List <IBM-MAIN@LISTSERV.UA.EDU>



On Mon, 30 Jun 2014 11:19:40 -0400, John Gilmore <jwgli...@gmail.com> 
wrote:

>No!
>
>Positional and keyword arguments may be "freely interspersed" in macro
>instructions.

We're not talking about macro instruction operands. We're talking about 
the macro instructions that define operands of TSO commands, and for TSO 
commands the user must specify all the positional operands before any of 
the keyword operands.

-- 
Walt


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