Virtual storage access method (VSAM) Question:
Download Questions PDF

Suppose a generation of GDG gets created in a particular step of a proc. How would you refer the current generation in a subsequent step? What would be the disposition of this generation now?

Answer:

Relative generation numbers are updated only at the end of the job, not at the end of a step. To allocate a new generation, we would be using (+1) with a DISP of ( NEW, CATLG, DELETE ). To refer to this in a subsequent step in the same job, we would again use (+1) but with a DISP of SHR or OLD.

Download VSAM Interview Questions And Answers PDF

Previous QuestionNext Question
How are different versions of GDG named?During processing of a VSAM file, some system error occurs and it is subsequently unusable What do you do?