Have you ever looked at using Naviquest to issue your SMS commands?   You 
can generate the JCL through the ISMF panels.

ISMF; 
ENHANCED ACS MANAGEMENT; 
BATCH TESTING/CONFIGURATION MANAGEMENT SELECTION MENU;
CONFIGURATION CHANGES BATCH SAMPLES SELECTION MENU;
Change Storage Group Volume Status 
        Comment from the generated JCL:  SAMPLE JCL TO ADD NEW VOLUMES AND 
THEIR STATUS


An example from my JCL library: 
Note:  MY_ID would be where I specify my TSO userID; 
SGPAL in this example is the storage group name. 
SCDS name is pretty much self-documented.


//ADDVOL1 EXEC ACBJBAOB, 
//        PLIB1='SYS1.DGTPLIB', 
//        TABL2=MY_ID.TEST.ISPTABL 
//SYSUDUMP DD  SYSOUT=* 
//TEMPFILE  DD  DSN=&&VOLADDS,DISP=(NEW,KEEP), 
//  SPACE=(CYL,(15,15)),LRECL=300,RECFM=F,BLKSIZE=300 
//SYSTSIN  DD * 
PROFILE PREFIX(MY_ID) 
ISPSTART CMD(ACBQBAI9) + 
BATSCRW(132) BATSCRD(27) BREDIMAX(3) BDISPMAX(99999999) 
/* 
//VOLADD  DD  * 
UPDHLVLSCDS() 
SCDSNAME('SMS.SCDS01.SCDS') VOL(PALF00) SG(SGPAL) STATUSALL(DISNEW) 
SCDSNAME('SMS.SCDS01.SCDS') VOL(PALF01) SG(SGPAL) STATUSALL(DISNEW) 
/* 
//VOLALT  DD  * 
/* 
//VOLDEL  DD * 
 /* 
 //ADDVOL2 EXEC ACBJBAOB, 
 //        PLIB1='SYS1.DGTPLIB', 
 //        TABL2=MY_ID.TEST.ISPTABL 
 //SYSUDUMP DD  SYSOUT=* 
 //SYSTSIN  DD DSN=&&VOLADDS,DISP=(OLD,DELETE) 
 //***********************************************   

////////////////////////////////////////////////////////////////////////////////////////////////////////////

I am trying to execute the following command via batch however I was 
unsuccessful : COMMAND VARY NOT FOUND
 
Could anybody suggest how I can correct my problem:
 
/*                                     
//STEP001 EXEC PGM=IKJEFT01            
//SYSPRINT DD SYSOUT=*                 
//SYSTSPRT DD SYSOUT=*                 
//SYSTSIN  DD *                        
VARY SMS,VOLUME(SMC1G5),DISABLE,NEW    
/*                                     
//  

This e-mail message and all attachments transmitted with it may
contain legally privileged and/or confidential information intended
solely for the use of the addressee(s). If the reader of this
message is not the intended recipient, you are hereby notified that
any reading, dissemination, distribution, copying, forwarding or
other use of this message or its attachments is strictly
prohibited. If you have received this message in error, please
notify the sender immediately and delete this message and all
copies and backups thereof. Thank you.

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

Reply via email to