VSAM MCQ Quiz With Answers

Reviewed by Editorial Team
The ProProfs editorial team is comprised of experienced subject matter experts. They've collectively created over 10,000 quizzes and lessons, serving over 100 million users. Our team includes in-house content moderators and subject matter experts, as well as a global network of rigorously trained contributors. All adhere to our comprehensive editorial guidelines, ensuring the delivery of high-quality content.
Learn about Our Editorial Process
| By Srinimf
S
Srinimf
Community Contributor
Quizzes Created: 6 | Total Attempts: 22,990
| Attempts: 6,503 | Questions: 15
Please wait...
Question 1 / 15
0 %
0/100
Score 0/100
1. Can VSAM files be accessed by both Batch and CICS?

Explanation

Yes, VSAM files can be accessed by both Batch and CICS. CICS (Customer Information Control System) is a transaction processing system that allows online access to applications and databases. It provides a way to interact with VSAM (Virtual Storage Access Method) files in real-time, allowing users to access and update data stored in these files during online transactions. Therefore, the correct answer is "Yes in CICS transaction server."

Submit
Please wait...
About This Quiz
VSAM MCQ Quiz With Answers - Quiz

Do you understand all concepts of VSAM well? To see if you know everything or not, take this VSAM Quiz. VSAM is basically the Virtual Storage Access Method... see morewhich is widely used for high performance of the mainframe data. This is the quiz mainly for Mainframe and CICS professionals. Here, you can test your knowledge as well as enhance it by learning new things. All the best for a perfect score on this quiz! Do not forget to share the quiz.
see less

2. HFS- Hierarchical file system on Unix.
ZFS-Z series file system on Unix

Both are ESDS VSAM files. But ZFS files have metadata log. So when a disaster occurs, ZFS files are recoverable.

Explanation

ZFS files have a metadata log, which means that in the event of a disaster, these files can be recovered. This implies that the metadata log in ZFS allows for the restoration of data even after a catastrophic event. Therefore, the statement "ZFS files are recoverable" is true.

Submit
3. RLS stands for Record Level Sharing

Explanation

This is used to share each record by batch process.

Submit
4. One difference between KSDS and (RRDS, ESDS, LDS).

KSDS= Contains both RDF/CIDF

RRDS,ESDS,LDS=All are data components

Explanation

The correct answer is true because KSDS (Key Sequenced Data Set) is a type of VSAM (Virtual Storage Access Method) file organization that contains both Relative Data Format (RDF) and Control Interval Data Format (CIDF). On the other hand, RRDS (Relative Record Data Set), ESDS (Entry Sequenced Data Set), and LDS (Linear Data Set) are all different types of data components used in mainframe systems. Therefore, the statement is true as it correctly highlights the difference between KSDS and the other data components.

Submit
5. ESDS Vs. KSDS
Submit
6. ESDS records can not be deleted. How can this be done by the programmer when logic wants to delete a record?

Explanation

The correct answer suggests that although ESDS (Entry Sequenced Data Set) records cannot be deleted, the programmer can still simulate the deletion by setting a flag that marks the record as inactive. This means that the record is technically still present in the dataset, but it is considered inactive and will not be accessed or used in any further processing. This approach allows the programmer to achieve the desired outcome of "deleting" a record while working within the limitations of ESDS.

Submit
7. For the RRDS cluster, what is the keyword we define in the IDCAMS DEFINE command?

Explanation

In the context of the RRDS (Relative Record Data Set) cluster, the keyword "NUMBERED" is used in the IDCAMS DEFINE command. This keyword is used to specify that the records in the RRDS cluster are to be numbered sequentially. By using this keyword, each record in the cluster will have a unique number associated with it, allowing for easy identification and retrieval of specific records within the cluster.

Submit
8. KSDS Load process is carried with Sequential access instead of Direct access.

Explanation

The KSDS Load process is carried out with sequential access instead of direct access. This means that the records are read and loaded into the KSDS (Key Sequenced Data Set) in a sequential manner, one after the other. Sequential access is typically used when the records are stored in a specific order and need to be processed in that order. In contrast, direct access allows for accessing specific records directly without having to go through the entire dataset sequentially. Therefore, the statement "KSDS Load process is carried with Sequential access instead of Direct access" is true.

Submit
9. Is DITTO one of the tools used to work with VSAM files?

Explanation

DITTO is indeed one of the tools used to work with VSAM files.

Submit
10. What is the Record format for VSAM file?

Explanation

The record format for a VSAM file is Variable Blocked (VB). In this format, each record in the file can have a different length, and records are grouped into blocks of data. This allows for efficient storage and retrieval of variable-length records. The other options, FBA (Fixed Blocked) and FB (Fixed Blocked), are not the correct formats for a VSAM file.

Submit
11. Can we Query on VSAM file like DB2?

Explanation

VSAM (Virtual Storage Access Method) is a file storage access method used in mainframe computers. While it is not a relational database management system (RDBMS) like DB2, it is still possible to query data stored in a VSAM file. VSAM provides various access methods, such as sequential, random, and indexed, which can be used to retrieve and manipulate data. Therefore, although it may not have the same capabilities as DB2, querying on a VSAM file is still possible.

Submit
12. VSAM has four file types KSDS, RRDS, ESDS, and LDS. Out of that, which one is being used, DB2 underlying tables?

Explanation

LDS. This linear sequential VSAM file

Submit
13. Which command do we use to see the VSAM file in CICS?

Explanation

CEMT I FILE(FILENAME)

Submit
14. Broadly how many parts of a VSAM data set can be classified?

Explanation

A VSAM data set can be classified into two broad parts: the data component and the index component. The data component contains the actual records or data stored in the data set, while the index component contains the index entries that allow for efficient access and retrieval of the data. These two components work together to provide efficient storage and retrieval capabilities in a VSAM data set.

Submit
15. In ESDS, the first record RBA is '0'. The record length is '80' bytes. So what is RBA for 2nd record?

Explanation



In ESDS (Entry Sequenced Data Set), the records are stored sequentially, with each record occupying a certain number of bytes. Since the first record's RBA (Relative Byte Address) is '0' and the record length is '80' bytes, we can calculate the RBA for the second record by adding the record length to the RBA of the first record.

Therefore, the RBA for the second record would be '80', as it follows sequentially after the first record. So, the correct answer is: 80.
Submit
View My Results

Quiz Review Timeline (Updated): May 1, 2024 +

Our quizzes are rigorously reviewed, monitored and continuously updated by our expert board to maintain accuracy, relevance, and timeliness.

  • Current Version
  • May 01, 2024
    Quiz Edited by
    ProProfs Editorial Team
  • Mar 30, 2013
    Quiz Created by
    Srinimf
Cancel
  • All
    All (15)
  • Unanswered
    Unanswered ()
  • Answered
    Answered ()
Can VSAM files be accessed by both Batch and CICS?
HFS- Hierarchical file system on Unix....
RLS stands for Record Level Sharing
One difference between KSDS and (RRDS, ESDS, LDS)....
ESDS Vs. KSDS
ESDS records can not be deleted. How can this be done by the...
For the RRDS cluster, what is the keyword we define in the IDCAMS...
KSDS Load process is carried with Sequential access instead of Direct...
Is DITTO one of the tools used to work with VSAM files?
What is the Record format for VSAM file?
Can we Query on VSAM file like DB2?
VSAM has four file types KSDS, RRDS, ESDS, and LDS. Out of that, which...
Which command do we use to see the VSAM file in CICS?
Broadly how many parts of a VSAM data set can be classified?
In ESDS, the first record RBA is '0'. The record length is...
Alert!

Advertisement