CMS knows that if a SET or QUERY command is not for itself, it passes it to
CP for execution.  This is also why you can stack the output from CP
commands in CMS (i.e. "QUERY TIME (STACK", but not "CP QUERY TIME (STACK") ,
because CMS is passing the command to CP for you and stacking the result.

In any case, best practice is to start your exec with Address Command and
proceed any CP commands with "CP", invoke execs using "EXEC", and make sure
commands are in upper case.

On Tue, Nov 2, 2010 at 5:19 PM, George Henke/NYLIC <
george_he...@newyorklife.com> wrote:

>
> Tom:
>
> *I think you may have found the problem.*
>
> *You use ADDRESS COMMAND CP SET VSWITCH.*
>
> *I do not reset the REXX CMS ENVIRONMENT to the COMMAND ENVIRONMENT with
> ADDRESS COMMAND.*
>
> Normally that is not a problem for CP commands, but in this case SET is
> also a CMS command and without the ADDRESS COMMAND prefix it may be getting
> processed as a CMS SET command, instead of a CP SET VSWITCH command and so
> the GRANTS may never really be getting issued even though they appear to be,
> they get Command Completed.
>
> From AUTOLOG1 Console, last IPL:
>
> *    68 *-* 'CP SET VSWITCH LNXVSW1 GRANT VLINUX1'*
>        >>>   "CP SET VSWITCH LNXVSW1 GRANT VLINUX1"
> *Command complete*
>     69 *-* 'CP SET VSWITCH LNXVSW1 GRANT VLINUX2'
>        >>>   "CP SET VSWITCH LNXVSW1 GRANT VLINUX2"
> Command complete
>     70 *-* 'CP SET VSWITCH LNXVSW1 GRANT VLINUX3'
>        >>>   "CP SET VSWITCH LNXVSW1 GRANT VLINUX3"
> Command complete
>     71 *-* 'CP SET VSWITCH LNXVSW1 GRANT VLINUX4'
>        >>>   "CP SET VSWITCH LNXVSW1 GRANT VLINUX4"
> Command complete
>     72 *-* 'CP SET VSWITCH LNXVSW1 GRANT VLINUX5'
>        >>>   "CP SET VSWITCH LNXVSW1 GRANT VLINUX5"
> Command complete
>
> *Without the ADDRESS COMMAND prefix could it be that the GRANTS are being
> ignored even though they have the CP prefix.*
>
> *What do you think?*
>
>


-- 
Bruce Hayden
z/VM and Linux on System z ATS
IBM, Endicott, NY

Reply via email to