I have a job that I use to execute all sorts of operator commands via batch:

//STEP1 EXEC PGM=IKJEFT1A,DYNAMNBR=300                           
//SYSPROC DD DSN=SYS1.SISPEXEC,DISP=SHR                          
//SYSPRINT DD SYSOUT=R                                           
//SYSTSPRT DD SYSOUT=R                                           
//SYSTSIN  DD *                                                  
cf chp(Bf,d3,bb,da,c1,01,a0,04,06,09,ba,0f,17,d1,1b,c3,35),off   
cf chp(d8,80,85,87,8e,94),off
/*
//

In the above example I am configuring chpid's off but it should work just fine 
for vary's.

Change / Add the system= on the main card to which LPAR you are running on(JES3 
only).    
                 

-----Original Message-----
From: IBM Mainframe Discussion List [mailto:IBM-MAIN@bama.ua.edu] On Behalf Of 
John Dawes
Sent: Friday, February 24, 2012 3:14 PM
To: IBM-MAIN@bama.ua.edu
Subject: Re: VARY ON/ VARY OFF COMMAND IN BATCH

Yes.  I have authorization.  

 

________________________________
 From: "Veilleux, Jon L" <veilleu...@aetna.com>
To: IBM-MAIN@bama.ua.edu
Sent: Thursday, 23 February 2012 1:06 PM
Subject: Re: VARY ON/ VARY OFF COMMAND IN BATCH
  
Did you check to see if you had console authority?

-----Original Message-----
From: IBM Mainframe Discussion List [mailto:IBM-MAIN@bama.ua.edu] On Behalf Of 
John Dawes
Sent: Wednesday, February 22, 2012 12:23 PM
To: IBM-MAIN@bama.ua.edu
Subject: VARY ON/ VARY OFF COMMAND IN BATCH

G'Day,
 
I have several hundred volumes to put online/offline and I thought I could try 
it in batch mode.  I dug up an old JCL which I tried but the job failed because 
of  the following:
 
READY
 CONSOLE SYSCMD(V (AA50),ONLINE) IKJ55303I THE CONSOLE COMMAND HAS TERMINATED.+ 
IKJ55303I AN ERROR OCCURRED DURING CONSOLE INITIALIZATION.  THE MCSOPER RETURN 
CODE WAS X'00000004' AND THE REASON CODE WAS X'000000 00'. READY 
END                                                                             
    
Here is the job which I executed.  :
 
//*
//STEP01   EXEC PGM=IKJEFT01,DYNAMNBR=999 //SYSPRINT DD  SYSOUT=* //SYSTSPRT 
DD  SYSOUT=* //SYSTSIN  DD  *
 CONSOLE SYSCMD(V (AA50),ONLINE)                    

Could someone please correct my mistake?
 
Thanks in advance.

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions, send email to 
lists...@bama.ua.edu with the message: INFO IBM-MAIN This e-mail may contain 
confidential or privileged information. If you think you have received this 
e-mail in error, please advise the sender by reply e-mail and then delete this 
e-mail immediately.
Thank you. Aetna  

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions, send email to 
lists...@bama.ua.edu with the message: INFO IBM-MAIN

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions, send email to 
lists...@bama.ua.edu with the message: INFO IBM-MAIN



This e-mail transmission may contain information that is proprietary, 
privileged and/or confidential and is intended exclusively for the person(s) to 
whom it is addressed. Any use, copying, retention or disclosure by any person 
other than the intended recipient or the intended recipient's designees is 
strictly prohibited. If you are not the intended recipient or their designee, 
please notify the sender immediately by return e-mail and delete all copies.

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@bama.ua.edu with the message: INFO IBM-MAIN

Reply via email to