On Fri, 15 Sep 2006 13:49:39 -0500, Mark Zelden <[EMAIL PROTECTED]>
wrote:

>>
>>Whose environment variables? The process that the REXX code is running
>>in or the process that invoked it? Does the default Unix shell in z/OS
>>support ".cmd" for running "cmd" in the same process as the shell?
>>
>
>Yes.  I knew it did, but had a little trouble rembering where to find
>it in black and white.
>
>From the z/OS Unix command reference Appendix A (shell command summary):
>
>A.7 Computing and Managing Logic
>
>
>+------------+----------+----------+-------------------------------------¦
>¦ dot or .   ¦ POSIX.2  ¦ XPG4.2   ¦ Run a shell file in the current     ¦
>¦            ¦          ¦          ¦ environment                         ¦
>+------------+----------+----------+-------------------------------------¦
>

It also documented in the commands reference under DOT. 

DOT . (dot) -- Run a shell file in the current environment

. (dot) runs a shell script in the current environment and then returns.
Normally, the shell runs a command file in a child shell so that changes
to the environment by such commands as cd, set, and trap are local 
to the command file. The . (dot) command circumvents this feature.

--
Mark Zelden
Sr. Software and Systems Architect - z/OS Team Lead
Zurich North America / Farmers Insurance Group
mailto: [EMAIL PROTECTED]
z/OS and OS390 expert at http://searchDataCenter.com/ateExperts/
Mark's MVS Utilities: http://home.flash.net/~mzelden/mvsutil.html

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html

Reply via email to