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

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

CIS COMMON SERVICES FOR Z/OS 90S SERVICES DATABASE MANAGEMENT SOLUTIONS FOR DB2 FOR Z/OS COMMON PRODUCT SERVICES COMPONENT Common Services Datacom/AD CA ECOMETER SERVER COMPONENT FOC Easytrieve Report Generator for Common Services INFOCAI MAINTENANCE IPC UNICENTER JCLCHECK COMMON COMPONENT Mainframe VM Product Manager CHORUS SOFTWARE MANAGER CA ON DEMAND PORTAL CA Service Desk Manager - Unified Self Service PAM CLIENT FOR LINUX ON MAINFRAME MAINFRAME CONNECTOR FOR LINUX ON MAINFRAME GRAPHICAL MANAGEMENT INTERFACE WEB ADMINISTRATOR FOR TOP SECRET Xpertware Compress Data Compression for MVS 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: