How to Compress Existing Data Sets with zEDC Using CA Disk

Document ID : KB000073068
Last Modified Date : 03/05/2018
Show Technical Document Details
Introduction:
While you activate zEDC, you could want to know how easily you can compress existing data sets with zEDC using CA Disk.
Instructions:
You can compress existing data sets with zEDC using CA Disk MOVE utility.

IMPORTANT:
Apply RO93439 to permit MOVE on multi-volumes and RO95648 to permit single volume moving back from zEDC.
 
Here is how to do it.
  • First, you need to ensure that SMS definition for zEDC compression is done by defining a DATA CLASS.
Data Class Name : COMPZEDC             
Description : ZEDC COMPRESSION         
Data Set Name Type  . . .  : EXTENDED  
  If Extended . . . . . .  : PREFERRED 
  Extended Addressability  : NO        
  Record Access Bias  . .  : USER      
  RMODE31 . . . . . . . .  :           
Space Constraint Relief .  : NO        
  Reduce Space Up To (%)   :           
  Guaranteed Space Reduction: NO       
  Dynamic Volume Count  .  :           
Compaction  . . . . . . .  : ZP        
Spanned / Nonspanned  . .  :           
System Managed Buffer   .  :           
System Determined Blocksize: NO   

 
  • Second, the SMS ACS rules should be coded to permit the use of zEDC.
STORAGE CLASS
The STORAGE CLASS ACS routine does an association with a STORAGE CLASS that will be used to assign the zEDC STORAGE GROUP.
Here is a sample of the rule:

IF (&DATACLAS = 'COMPZEDC' AND &UNIT NE ‘TAPE’) THEN DO
   SET &STORCLAS = 'ZEDCSC'                           
END      

 
STORAGE GROUP
The STORAGE GROUP used for zEDC can be an existing one.
The assignment in the STORAGE GROUP can be easily done like this:

/* ----------- ASSIGN STORAGE GROUP TO ZEDC COMPRESSED FILES ----- */ 
IF (&DATACLAS = 'COMPZEDC' AND &STORCLAS = 'STANDARD') THEN DO     
   SET &STORGRP = 'ZEDCSG'                                            
END            
                                                       
 
  • Third, CA Disk makes all sequential data sets be zEDC compressed by simply using the MOVE command. It can also return those data sets back to non zEDC compressed state.
Setting SMSALLOC to Y causes the new DATACLASS to be passed in to your ACS routines.  Using the previous ACS statements will then allow the data set to be compressed.
 
Here are samples for each case.
//*  ACTIVE ZEDC FOR SMS                            

//S02MOVE   EXEC DMS                                
//SYSIN    DD *
   FIND DSN=
   MOVE TOVOL=volser,DATACLAS=COMPZEDC                           
//SYSPARMS  DD   *                                  
SMSALLOCY        
                                   

NB: The TOVOL=volser points to one of the volume residing into the ZEDC STORAGE Group                                                    
 
//*  ACTIVE ZEDC FOR NON SMS                  

//S02MOVE   EXEC DMS                          
//SYSIN    DD *            
   FIND DSN=
   MOVE TOVOL=volser,DATACLAS=COMPZEDC                     
//SYSPARMS  DD   *                            
SMSALLOCY 


NB: The TOVOL=volser points to one of the volume residing into the ZEDC STORAGE Group                                        
 
If you would like to return to a non zEDC data set then use the MOVE as follow.
//* REMOVE ZEDC TO NON SMS                           

//S02MOVE   EXEC DMS                                
//SYSIN    DD *
   FIND DSN=
   MOVE TOVOL=(TSOxxx,TSOyyy)                       
//SYSPARMS  DD   *                                  
SMSALLOCN                  
                          
Note that the SYSPARM SMSALLOCN is needed to override the SMS information that CA Disk would use from its record information during the new allocation. Here I use other Management, Storage and Data class than the one setup for zEDC. 

NB: The TOVOL=volser points to one of the volume you would like the data set moved to.

   

//* REMOVE ZEDC TO SMS                              

//S02MOVE   EXEC DMS                                
//SYSIN    DD *
   FIND DSN=
   MOVE MGMTCLAS=TSO,STORCLAS=TSO,DATACLAS=DEFAULT  
//SYSPARMS  DD   *                                  
SMSALLOCY        

    
NOTE: The MOVE does not authorize you to move a data set to its original volume so do not forget to use a POOL or a STORAGE GROUP.