On Tue, 1 Apr 2014 19:46:59 -0700, Jon Perryman wrote:

>ADDRESS TSO is the default when a REXX exec is executed from ISPF or TSO �It 
>usually is not needed.
>
Also when from EDIT, as a macro.  Jarring to someone accustomed to CMS XEDIT,
where the default environment is, logically, XEDIT>

>TSOEXEC adds additional overhead in some cases (not all). In addition, it is a
>command (not a REXX environment such as ADDRESS TSO).
>
Yet, I wonder why it isn't intrinsic, so the programmer never need explicitly
code it, whatever it does.

>"LISTA ST" will work fine without ADDRESS TSO is omitted. Did you actually try 
>it?
>I've used it for years and never coded ADDRESS TSO in any REXX except to switch
>back after ADDRESSing another environment.
>
Styles vary.  Some programmers prefer to code "address" on every command:
o It immediately identifies the environment being addressed.
o It distinguishes commands (such as 'CALL') from Rexx instructions (such as 
CALL).

I think it merely adds clutter.  It's a bad habit lingering from CLIST, where 
ISPEXEC
and ISREDIT were mandatory.  When it fits, I prefer to code a single "address"
(TSO, SYSCALL, SH, MVS, ISPF, ISREDIT, SH, LINK, ATTACH, ...) at the top of
each subroutine; RETURN restores the caller's environment; no need to fuss
with saving and restoring it.

-- gil

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to