The input file may be corrupted if the CA L-Serv LDMAMS utility fails during a COMPRESS. How can this be prevented?

book

Article ID: 38055

calendar_today

Updated On:

Products

CA CIS CA Common Services for z/OS CA 90s Services CA Database Management Solutions for DB2 for z/OS CA Common Product Services Component CA Common Services CA Datacom/AD CA ecoMeter Server Component FOC CA Easytrieve Report Generator for Common Services CA Infocai Maintenance CA IPC Unicenter CA-JCLCheck Common Component CA Mainframe VM Product Manager CA Chorus Software Manager CA On Demand Portal CA Service Desk Manager - Unified Self Service CA PAM Client for Linux for zSeries CA Mainframe Connector for Linux on System z CA Graphical Management Interface CA Web Administrator for Top Secret CA CA- Xpertware CA Compress Data Compression for MVS CA Compress Data Compression for Fujitsu

Issue/Introduction

Symptoms:

An abend in L-Serv can cause the corruption of a file when LDMAMS is processing a COMPRESS.  How can this be prevented?

Environment: 

The CA L-Serv LDMAMS Utility executing in a z/OS enviroment.

 

Cause:

The LDMAMS COMPRESS has been interrupted which corrupts the partially rebuilt VSAM file. 

The root cause of such situation can be an Abend in L-Serv or an external access to the dataset that is currently compressed. 

 

Resolution:

It is recommended to backup a file before running a COMPRESS. This is also recommended when using LDMAMS utility within LServ.

Here is the best practice sequence to COMPRESS a VSAM dataset including a BACKUP:

1 - Run a LDMAMS step for each VSAM you need to COMPRESS.                                 
2 - Add a LDMAMS Backup/COPY command before the COMPRESS command. The COMPRESS will start if the LDMAMS Copy completed successfully.   

The SYSIN contains the commands :                                         
                                                                          
REPRO         INFILE(PRODKSDS) OUTFILE(KSDSBKP) REPLACE REUSE                  
COMPRESS INFILE(PRODKSDS) WORKFILE(PRODCOPY)                              
                                                                          
Note : Options REPLACE and REUSE may be coded in case KSDSBKP is not empty.
                                                                          
If the REPRO failed LDMAMS won't execute the command COMPRESS but will  issue message :                                                           
'LDM0811E Statement skipped due to previous error'                        
This way, the REPRO allows to check that the KSDS is ready for the compress.

Additional Information:  

For further information, please see "Maintain Managed Files" in the CA-L-Serv Chapter found in the CA Common Services Administration Guide 

 

Environment

Release: CA90SV00200-12-Common Services-for z/OS
Component: