How did you refresh a VSAM file and how frequently you do
it ?

Answers were Sorted based on User's Feedback



How did you refresh a VSAM file and how frequently you do it ?..

Answer / mahesh

Depends , refresh can be done dialy/weekly/monthy.

Refresh means just DELETE/DEFINE the VSAM file
i.e this done in two steps
STEP1 : deleting the Existing vsam file;
IF LASTCC =8 ; SET MAXCC=0
STEP2 : DEFINE VSAM-FILE(COND=(0,LT,STEP1)
Note: we will get Return-code=8; when the file we are
trying the delete doen't exist.

Thanks & Regards,
Mahesh.

Is This Answer Correct ?    6 Yes 1 No

How did you refresh a VSAM file and how frequently you do it ?..

Answer / joseph

thru VERIFY command

in TSO

Verify vsam file name


thanks
joseph

Is This Answer Correct ?    2 Yes 2 No

How did you refresh a VSAM file and how frequently you do it ?..

Answer / joseph

I agree with joseph

Is This Answer Correct ?    1 Yes 4 No

Post New Answer

More VSAM Interview Questions

What are all the ways we can create datasets?

7 Answers   IBM,


What is the difference between PS file and VSAM file?

7 Answers   IBM, Infosys, Verizon,


write a program to read from a VSAM file , there will be a 5 records to create name. empno. resignation and address to update in a db2 table and call another program using dynamic call to find the matching fields in program 1 to update in db2 table. anybody pls send de program for dis ? thanks in advance...

0 Answers   CTS,


What is a VSAM slot?

1 Answers  


How to createing new version of GDG with out loosing the data in preaves GDG version?

7 Answers   Patni, Satyam,






explain how can you initialize a vsam file before any operation?

0 Answers   IBM,


can we create PS file using IDCAMS utility?

3 Answers   IBM,


On which dataset you can have alt index?

0 Answers  


Yes. Because the alternate key would first locate the primary key, which in turn locates the actual record. Needs twice the number of I/Os.

0 Answers  


Syntax of AMS modal commands ?

1 Answers   IBM,


Using Alternate Indexes in Batch pgms: ?

2 Answers   IBM,


what is the concept of IMPORT in vsam??

2 Answers  


Categories