Explain how to access vsam file?



Explain how to access vsam file?..

Answer / Shashank Gautam

In Assembler, to access a VSAM file, you need to follow these steps:
1. Define the VSAM file description in DC (Description Control) area.
2. Use the proper control information like sequence organization and key-sequence set-up for your specific file.
3. Use the appropriate VSAM entry points in the assembler program such as OPEN, GET, PUT, CLOSE, etc.
4. In the case of EXTended Sequential (XS) or Relative Sequential (RS) access methods, you may need to use the READ or FIND instructions with appropriate control information.
5. For Keyed Sequential (KS) access method, you can use the FIND/SET routine to search for a specific record.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Assembler Interview Questions

How to pass the parameters from jcl to assembler program?

1 Answers  


what is need of START 0?. In steed of '0' can we use any other numerics?. if we use what will happen?.

4 Answers   CSC, TCS,


How to initialize 20,000 bytes in the Assembler..

5 Answers   Amdocs, IBM,


What is maximum displacement?

1 Answers  


What is need of start 0? In steed of can we use anyother numerics? If we use what will happen?

1 Answers  


Why do we have multiple base registers in certain programs?

4 Answers   IBM,


What is house keeping in assembler? And explain the following code HELLOTSO START 0 * PRINT NOGEN BEGIN SAVE (14,12) LR 12,15 USING TYPE,12 ST 13,SAVE+4 LA 11,SAVE ST 11,8(13) LR 13,11

6 Answers   Mind Tree,


Explain the difference between various read and find statement and which one should be used when for better adabas performance?

1 Answers  


What will happen if we drop the base register in the program which contains only one basereg?

1 Answers  


What does the following code do? Ap wkur,=p5 where wkur is a label?

1 Answers  


What is symbol table in assembler?

2 Answers   HCL,


how to produce SOC7 abend

1 Answers   EDS, IBM,


Categories