*Any* commands that can be issued in a Clist or REXX proc (e.g. "ISPEXEC
SELECT PGM(J00YCKAL) PARM(JLRCL)" etc.)can also be issued in an edit
macro. But *only edit* statements (e.g. "EXCLUDE ALL P'¬'" then "CHANGE
ALL P'.' ' ' NX" etc.) can be issued in edit macros. The point I was
making was that *no* edit commands (that could be issued *only* in edit
macros) were being issued after the "ISREDIT MACRO (PARMSTR)" - which
thus made the "ISREDIT MACRO (PARMSTR)" statement wholly irrelevant
(because no actual *edit* commands then followed it). All the commands
that *did* follow it could be issued in native Clist or REXX, without a
preceding "ISREDIT MACRO" statement.
 
BTW I use "ADDRESS" only for "ADDRESS IPCS", to avoid having to juggle
between "ADDRESS TSO/MVS/ISREDIT/ISPEXEC/whatever-else".
 
Cheers, CP
 


On 29/08/2017 02:13, Paul Gilmartin wrote:
> On Tue, 29 Aug 2017 02:04:25 +0100, CM Poncelet  wrote:
>
>> FWIW
>>
>> The oddity is that there are *no* edit macro statements after "ISREDIT
>> MACRO (PARMSTR)". So why is an edit macro declared in the Clist?
>>  
>> E.g. "ISPEXEC SELECT PGM(J00YCKAL) PARM(JLRCL)" etc.can be issued
>> directly from the Clist proc and does not need an edit macro to do that.
>>  
>> Sure, edit macros are normally invoked from the command line in edit
>> mode. But they can also be invoked by Clist and REXX procs, and then not
> >from the command line. So if JEM is a Clist that in turn invokes an edit
>> macro, then 'TSO JEM + any parms' would be used to invoke JEM as a Clist
>> (and ISPF option 6 could invoke it simply as 'JEM + any parms'). So, is
>> JEM meant to be invoked as a Clist ("PROC 0 ...") or as an edit macro
>> ("ISREDIT MACRO (<parms>)")?
>>  
>> I give up.
>>  
> In Rexx, I have done in at least one case:
>     address 'ISREDIT' 'MACRO (Arg1)'   /* Use Edit macro argument  */
>     if RC<>0 then Arg1 = arg( 1 )      /* else use Rexx argument.  */
>
> ... This works in Edit as a macro (just for convenience; it depends on no
> ISREDIT commands), TSO READY, IRXJCL, and OMVS, with no code changes.
>
> -- gil
>
> ----------------------------------------------------------------------
> 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