IDCAMS Alter

IDCAMS Build Index IDCAMS Listcat

Advertisements


ALTER command is used to change the attributes of the existing VSAM dataset which is already created.

ALTER parameter can’t change all the attributes but most of the attributes can be changed.

It is very easy to ALTER the attributes rather than delete the dataset.


Syntax:

						
 ALTER  entryname[/password]                                        
	 [ADDVOLUMES(volser[  volser...])]                           
	 [ATTEMPTS(number)]                                          
	 [AUTHORIZATION(entrypoint[  string])]                       
	 [BUFFERSPACE(size)]                                         
	 [CODE(code)]                                                
	 [CONTROLPW(password)]                                       
	 [EMPTY]NOEMPTY]                                             
	 [ERASE]NOERASE]                                             
	 [EXCEPTIONEXIT(entrypoint)]                                 
	 [FILE(ddname)]                                              
	 [FREESPACE(CI-percent[  CA-percent])]                       
	 [INHIBIT]UNINHIBIT]                                         
	 [KEYS(length  offset)]                                      
	 [MASTERPW(password)]                                        
	 [NEWNAME(newname)]                                          
	 [NULLIFY(                                                   
	   [AUTHORIZATION(MODULE]STRING)]                            
	   [CODE]                                                    
	   [CONTROLPW]                                               
	   [EXCEPTIONEXIT]                                           
	   [MASTERPW]                                                
	   [OWNER]                                                   
	   [READPW]                                                  
	   [RETENTION]                                               
	   [UPDATEPW])]                                              
	 [OWNER(ownerid)]                                            
	 [READPW(password)]                                          
	 [RECORDSIZE(average   maximum)]                             
	 [REMOVEVOLUMES(volser[  volser...])]                        
	 [SCRATCH]NOSCRATCH]                                         
	 [SHAREOPTIONS(crossregion[  crosssystem])]                  
	 [TO(date)]FOR(days)]                                        
	 [UNIQUEKEY]NONUNIQUEKEY]                                    
	 [UPDATE]NOUPDATE]                                           
	 [UPDATEPW(password)]                                        
	 [UPGRADE]NOUPGRADE]                                         
	 [WRITECHECK]NOWRITECHECK]                                   
	                                                             
	 [CATALOG(catname[/password])]                               


ALTER statement can able to modify the above all attributes from the VSAM definition.


Practical Example:


//JOB CARD
//*------------------------------------------------------------------
//* IDCAMS - ALTER
//*------------------------------------------------------------------
//STEP01  EXEC PGM=IDCAMS
//SYSPRINT  DD SYSOUT=*
//SYSIN     DD *
       ALTER 				-
               Userid.KSDS.CLUSTER 	-
               NEWNAME(userid.KSDS.CLUSTER)
/*



IDCAMS Build Index IDCAMS Listcat

Advertisements