What are the files that can be created using LIKE Parameter?

  1. VSAM File

  2. Tape File

  3. none of above

  4. Both a and b


Correct Option: A
Explanation:

To answer this question, the user needs to know about the LIKE parameter in mainframe programming.

The LIKE parameter is used to create a new file that has the same record-layout as an existing file. This is useful when you want to create a new file with the same structure as an existing file, but with different data.

Now, let's go through each option and explain why it is right or wrong:

A. VSAM File: This option is correct. You can use the LIKE parameter to create a new VSAM file that has the same record-layout as an existing VSAM file.

B. Tape File: This option is incorrect. You cannot use the LIKE parameter to create a new tape file. Tape files are typically used for backup and archival purposes, and do not have a record-layout like VSAM files.

C. None of above: This option is incorrect. As explained above, option A is correct.

D. Both a and b: This option is incorrect. Although option A is correct, option B is not.

Therefore, The Answer is: A. VSAM File

Find more quizzes: