One question,  When I run the job don't I need the EXEC  PGM=xxxxx in order to 
issue the command ?  I checked the manual for an example but it just displays 
the actual COMMAND.
 Examples of the COMMAND StatementExample 1The following shows an example 
COMMAND statement with the START command.// COMMAND ’S VTAM’ start VTAMExample 
2The following is an example of a command that is continued with the command
operand in apostrophes.// COMMAND ’SEND ’’This message will be sent to user 
SCOTTC
// when this job is converted’’,USER=(SCOTTC)’


________________________________
From: Steve Thompson <[email protected]>
To: [email protected] 
Sent: Thursday, 17 January 2013 10:50 AM
Subject: Re: SMS COMMAND VIA BATCH

From:  Lizette Koehler
Date:  01/17/2013 09:42 AM


Well, if you must do JCL, then you need to use the JCL statement for 
COMMAND
not IKJEFT01.  Vary does not work under it.

It might work under OPER in TSO.

But, I find, //  COMMAND,VARY....

COMMAND Statement

z/OS V1R12.0 MVS JCL Reference
SA22-7597-14
<SNIPPAGE>

Lizette's directive is a good one. You can also do the following:

//  VARY .....

But in all of these, you will need to ensure that you have Security 
authority to issue commands via JCL.

This authority can be effected in a few ways.

Regards,
Steve Thompson

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

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

Reply via email to