VSAM MCQ Questions And Answers - Mainframe Development
VSAM MCQs : This section focuses on "basics" of VSAM. These Multiple Choice Questions (MCQ) should be practiced to improve the VSAM skills required for various interviews (campus interviews, walk-in interviews, company interviews), placements, entrance exams and other competitive examinations.
1. Which command modify the file attributes of the VSAM?
A. Repro
B. Alter
C. Listcat
D. Examine
View Answer
Ans : B
Explanation: Alter: to modify the file attributes of the VSAM
2. What is syntax of Repro command?
A. REPO INFILE (in-ddname)
B. REPRO FILE (in-ddname)
C. REPRO INFILE (in-ddname)
D. REPRO IN (in-ddname)
View Answer
Ans : C
Explanation: Repro: REPRO INFILE (in-ddname) is syntax of Repro command.
3. How many main components of a VSAM?
A. 0
B. 1
C. 2
D. 3
View Answer
Ans : D
Explanation: There are 3 main components of a VSAM : VSAM cluster, Control Area and Control Interval
4. KSDS stands for Key sequenced datasets?
A. Yes
B. No
C. Can be yes or no
D. Can not say
View Answer
Ans : A
Explanation: Yes, KSDS: Key sequenced datasets
5. VSAM 04 File status codes means?
A. Operation completed completely
B. Invalid fixed-length record
C. Primary duplicate key found
D. All of the above
View Answer
Ans : B
Explanation: 04 : Invalid fixed-length record
6. ____________ is an access method service program.
A. CAMS
B. CAMSID
C. IDCAMS
D. ID
View Answer
Ans : C
Explanation: IDCAMS is an access method service program. A user runs the IDCAMS program by supplying the AMS command through SYSIN. Some of the crucial AMS commands are DELETE, DEFINE, and REPRO.
7. How do you load a VSAM dataset with Records?
A. By using the LISTCAT command
B. By using the EXAMINE command
C. By using the VERIFY command
D. By using the REPRO command
View Answer
Ans : D
Explanation: You load a VSAM dataset with Records By using the REPRO command
8. In KSDS file structure, Index Component Key 1 has Memory address of?
A. 100
B. 200
C. 235
D. 245
View Answer
Ans : D
Explanation: In KSDS file structure, Index Component Key 1 has Memory address of 245.
9. Which VSAM File status codes states Primary duplicate key found?
A. 0
B. 11
C. 22
D. 44
View Answer
Ans : C
Explanation: 22 : Primary duplicate key found
10. A cluster combines all of these : index, sequence set and the data part of the dataset within it.
A. TRUE
B. FALSE
C. Can be true or false
D. Can not say
View Answer
Ans : A
Explanation: A cluster combines all of these : index, sequence set and the data part of the dataset within it. The responsible OS gives the program access to the cluster (access is given to every part of the dataset simultaneously).
Discussion