0 votes
in VSAM by
Can you tell me how often you refresh your VSAM file and how you did it?

1 Answer

0 votes
by

You can refresh the VSAM file once a day, every week, or every month, however, you prefer. Refreshing is the same as deleting/defining the VSAM file.

Step 1: Delete existing/current VSAM file

 IF LASTCC =8 ; SET MAXCC=0

Step 2: Create a new VSAM File

 DEFINE VSAM-FILE_NAME (COND=(0,LT,STEP1)

Whenever you try to delete a file that doesn't exist, you get a return code of 8. The command VERIFY can be used in TSO Prompt to verify that the file exists.

...