Note that issuing a command with a // COMMAND jcl statement will execute the 
command as soon as the job starts, which may not be what is always
wanted.   Sometimes you may not want the command to execute at a particular 
point  in the program or conditionally based on the cond codes.

I have a program that issues commands if you want it - it takes the command 
either from the parm field or multiple commands can be executed from SYSIN.
Of course,  RACF OPERATIONS access or the equivalent Is needed to run it.


-----Original Message-----
From: IBM Mainframe Discussion List [mailto:[email protected]] On Behalf 
Of william janulin
Sent: Friday, April 28, 2017 10:19 AM
To: [email protected]
Subject: Re: VARY command in a batch job

Guys,I just did a quick test of a batch job with a // COMMAND statement in it , 
using IEFBR14, it worked fine.
Thank you everyone for your responses, Bill J.


    On Friday, April 28, 2017 10:14 AM, "Nims,Alva John (Al)" <[email protected]> 
wrote:


 I would take a look at CBTTAPE.org FILE 1 (the index to what is available) to 
find a program that will do that, I am sure there is at least one out there.

Al Nims
University of Florida

-----Original Message-----
From: IBM Mainframe Discussion List [mailto:[email protected]] On Behalf 
Of Steve Beaver
Sent: Friday, April 28, 2017 10:02 AM
To: [email protected]
Subject: Re: VARY command in a batch job

Do you have a PGM that does a MGCRE command?


Steve

-----Original Message-----
From: IBM Mainframe Discussion List [mailto:[email protected]] On Behalf 
Of william janulin
Sent: Friday, April 28, 2017 7:41 AM
To: [email protected]
Subject: VARY command in a batch job

To list;
  Is there a way to issue a VARY cuu,offline command in a batch job. I need to 
do some full volume copies, including the volser,  and then vary the receiving 
offline.

Thank you in advance, Bill J.

----------------------------------------------------------------------
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

----------------------------------------------------------------------
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

________________________________

This e-mail, including any attachments, may be confidential, privileged or 
otherwise legally protected. It is intended only for the addressee. If you 
received this e-mail in error or from someone who was not authorized to send it 
to you, do not disseminate, copy or otherwise use this e-mail or its 
attachments. Please notify the sender immediately by reply e-mail and delete 
the e-mail from your system.

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

Reply via email to