Endevor

  • 1.  Submit MVS command in a Processor?

    Posted Jan 11, 2011 04:35 PM
    Hello! Is it possible to execute a MVS command inside an Endevor Processor? Can you use BC1PTMP0? Would appreciate any insight or suggestions on this. Thanks!


  • 2.  RE: Submit MVS command in a Processor?

    Posted Jan 11, 2011 04:45 PM

    patricia.caudill wrote:

    Hello! Is it possible to execute a MVS command inside an Endevor Processor? Can you use BC1PTMP0? Would appreciate any insight or suggestions on this. Thanks!
    The program BC1PTMP0 is for executing TSO commands or initiating a REXX. What 'MVS' commands do you have in mind?


  • 3.  RE: Submit MVS command in a Processor?

    Posted Jan 12, 2011 12:49 PM
    There are a number of ways this can be accomplished. If you have SDSF at your site you could issue the MVS command using SDSF in batch as you would do from the SDSF screen. As long as the ID issuing the command has authority to do so. JES2 and JES3 also have ability to issue MVS commands.
    I believe you could use IKJEFT01,IKJEFT1A, or IKJEFT1b and issue a CONSOLE command but you would need to talk to your system programmers to see how to make the session you start with those authorized.
    I have not used this method but this if from the IBM manual:
    COMMAND Statement

    z/OS V1R9.0 MVS JCL Reference
    SA22-7597-11




    Purpose

    Use the COMMAND statement to specify an MVS™ or JES command that the system issues when the submitted JCL is converted.

    The COMMAND statement is the preferred way within the job control language to specify commands, rather than using the JCL command statement, which is described in JCL Command Statement. That is because the COMMAND statement is in standard JCL statement format, is parsed and processed using code common to the other JCL statements, and if necessary may be continued across multiple card images, that is, is not limited to 80 characters. Note that some MVS subsystems, including TSO, JES2, and JES3, offer additional ways to enter system commands outside JCL, which may be preferable under certain circumstances.

    When the system encounters an in-stream command it issues message IEFC165I to inform the operator. If the operator is requested to authorize running of commands entered through the input stream, the system then issues message IEFC166D asking for the operator to respond. The operator should respond REPLY id,'Y' if the command displayed in message IEFC165I is to be run, and REPLY id,'N' otherwise.

    Because the system usually executes an in-stream command as soon as it is converted, execution of the command will not be synchronized with the execution of any job or job step in the input stream. To synchronize a command with job processing, tell the operator the commands you want entered and when they should be issued, and let the operator enter them from the console.

    The system processes each command according to installation options for both the input device from which the job was read, and the job class.

    On a JES3 system, the system does not record in a job's JESMSGLG data set any commands you enter with the COMMAND statement.

    References

    For more information on MVS and JES commands and for descriptions of their parameters, see z/OS MVS System Commandsz/OS MVS System Commands, z/OS JES2 Commands, and z/OS JES3 Commands.

    Considerations for an APPC Scheduling Environment

    The COMMAND statement has no function in an APPC scheduling environment. If you code a COMMAND statement, the system will check it for syntax and then ignore it.


    I hope this helps. I am sure there are other ways to issue MVS commands such as IOF if you have that in your shop...etc
    I have also seen where you can issue a "command" to your MVS automation software (MVSOPS...etc) and have that issue the appropriate MVS command.


  • 4.  RE: Submit MVS command in a Processor?

    Posted Jan 17, 2011 11:25 AM
    As previously mentioned, there are a number of ways to accomplish this task. Another way is to use your automation software such as CA-OPS/MVS along with Endevor. Simply insert a step in the Endevor processor to issue a WTO message and then have OPS/MVS trap the message and execute the MVS command. I have successfully used this approach for several clients to issue the LLA REFRESH command.

    Kevin Grimes, President
    CA Endevor Global User Community
    https://communities.ca.com/web/ca-endevor-global-user-community
    http://www.linkedin.com/in/kgrimes


  • 5.  RE: Submit MVS command in a Processor?

    Posted Jan 20, 2011 02:37 PM
    Thanks everyone!