This appears to be a SFS admin command. The Command vs CMS is usually in
regards to 'address'ing an environment. Addressing Command will issue
the command in CMS without translation. Ex. 
In vanilla CMS if you have a file such as     
            JOEUSER Ofslogfl A
In an exec you could issue:
   'RENAME JOEUSER Ofslogfl A JOEUSER OFSLOGFL A'   this defaults to CMS
and will fail because the lower case chars will be translated to upper
and the input file will not be found. 
If you code:
   Address COMMAND 'RENAME JOEUSER Ofslogfl A JOEUSER OFSLOGFL A'   it
will succeed because address command passes the exact phrase without
trans. 

Hope that helps,

Richard Feldman                                                
Senior IT Architect                                         
Kelly, Douglas / Westfair Foods  Ltd.                          
Ph:(403)291-6339 Fax:(403)291-6585

-----Original Message-----
From: The IBM z/VM Operating System [mailto:[EMAIL PROTECTED] On
Behalf Of Brian Nielsen
Sent: Thursday, December 14, 2006 2:22 PM
To: IBMVM@LISTSERV.UARK.EDU
Subject: Re: COMMAND vs. CMS

The COMMAND stage bypasses the normal search order and won't find EXECs.
=
 
Since DELETE USER is not a CMS or CP command it fails.  The COMMAND
stage=
 
ends when it gets a negative return code if it's secondary output stream
=

is not connected.

Brian Nielsen

On Thu, 14 Dec 2006 13:08:43 -0800, Schuh, Richard <[EMAIL PROTECTED]>
wrot=
e:

>I have a file containing records that look like this:
>
>       DELETE USER JOEUSER  fpid (TYPE NOCONFIRM
>
>This file is read by a pipe and the commands passed to a stage for
>execution. I have seen and heard the arguments for using COMMAND vs.
CMS=

>stages, so I passed the records to COMMAND (as in 'PIPE < fid | command
>| cons'.) Nothing happens as a result. If I change the COMMAND stage to
>CMS, the commands are acted upon. Funny thing, an appended command of
>"ERASE fid" does get executed in either instance. There must be some
>simple explanation for what is happening, but I must be even simpler.
>What am I missing?
>
>Thanks,
>Richard Schuh
>
>
>
>

Reply via email to