InterviewSolution
This section includes InterviewSolutions, each offering curated multiple-choice questions to sharpen your knowledge and support exam preparation. Choose a topic below to get started.
| 1. |
Can You Specify Some The Distinctive Features Of A Ksds, Key Sequenced Dataset? |
|
Answer» The INDEX and the distributed free space. CI and CA splits upon UPDATES. Record LENGTH may be changed during the time of update. The records are ACCESSED by a particular Key in KSDS. The index and the distributed free space. CI and CA splits upon updates. Record length may be changed during the time of update. The records are accessed by a particular Key in KSDS. |
|
| 2. |
Explain In Brief Why Do Vsam Take More Disk Space Than Other Utilities? |
|
Answer» VSAM increases the disk SPACE requirements of systems. This is because VSAM offers certain capabilities LIKE PARTIAL self-reorganization to make things more EFFICIENT in data sets that can be modified. VSAM increases the disk space requirements of systems. This is because VSAM offers certain capabilities like partial self-reorganization to make things more efficient in data sets that can be modified. |
|
| 3. |
Can You Tell Me How Are Records Stored In An Esds, Entry Sequenced Dataset? |
|
Answer» They are stored without respect to the contents of the RECORDS and in the ORDER in which they are INCLUDED in the FILE. They are stored without respect to the contents of the records and in the order in which they are included in the file. |
|
| 4. |
When The Define Jcl Is Not Available, How Can You Get Information About A Vsam File’s Organisation ? |
|
Answer» You can USE the LISTCAT COMMAND. You can use the LISTCAT command. |
|
| 5. |
What Are The Additional Information You Should Give In The Dd Statement While Defining The Next Generation Of A Gdg? |
|
Answer» Give (+1) as the generation number, give (new,catlg) for disp, give space PARAMETER, can give the dcb parameter if you WANT to OVERRIDE the dcb of the model DATASET. Give (+1) as the generation number, give (new,catlg) for disp, give space parameter, can give the dcb parameter if you want to override the dcb of the model dataset. |
|
| 6. |
Explain In Brief How Are Different Versions Of Gdg Named? |
|
Answer» base-file-name.GnnnnnV00 where NNNN= generation number (UPTO 255). nnnn will be 0000 for the 1st generation. base-file-name.GnnnnnV00 where nnnn= generation number (upto 255). nnnn will be 0000 for the 1st generation. |
|
| 7. |
Is It Necessary That All Versions Of The Gdg Have To Be Of The Same Record Length? |
|
Answer» It is not required, the DCB of the model DATASET can be OVERRIDDEN when you ALLOCATE new versions. It is not required, the DCB of the model dataset can be overridden when you allocate new versions. |
|
| 8. |
Explain How Do You Define A Gdg In Vsam? |
|
Answer» We can use the DEFINE GENERATIONDATAGROUP command. In the same IDCAMS step, ANOTHER DATASET must be defined whose DCB parameters are used when new generations of the GDG are created. This dataset is known as the model dataset. The DS name of this model dataset must be the same as that of the GDG, so use a disp of keep rather than CATLG and also specify space=(trk,0) We can use the DEFINE GENERATIONDATAGROUP command. In the same IDCAMS step, another dataset must be defined whose DCB parameters are used when new generations of the GDG are created. This dataset is known as the model dataset. The ds name of this model dataset must be the same as that of the GDG, so use a disp of keep rather than catlg and also specify space=(trk,0) |
|
| 9. |
Differentiate Between Sequential Files And Esds Files In Vsam? |
|
Answer» In VSAM, Sequential(QSAM) FILES can be CREATED on TAPE while ESDS files cannot be created. Again, you can have ALTINDEX for an ESDS while no such FACILITY that exists for QSAM files. In VSAM, Sequential(QSAM) files can be created on tape while ESDS files cannot be created. Again, you can have ALTINDEX for an ESDS while no such facility that exists for QSAM files. |
|
| 10. |
How Can You Load A Vsam Data Set With Records ? |
|
Answer» For LOADING we can USE the REPRO COMMAND. For loading we can use the REPRO command. |
|
| 11. |
Can You Tell Me What Does A File Status Of 02 On A Vsam Signifies? |
|
Answer» It INDICATES duplicate ALTERNATE key. It happens on both INPUT and OUTPUT operation. It indicates duplicate alternate key. It happens on both input and output operation. |
|
| 12. |
Explain How Can You Initialize A Vsam File Before Any Operation? |
|
Answer» You can WRITE a DUMMY program that will just OPEN the file for OUTPUT and thereafter closes it. You can write a dummy program that will just open the file for output and thereafter closes it. |
|
| 13. |
What Will Happen When You Try To Open An Empty Vsam File In A Cobol Program For Input? |
|
Answer» A VSAM file that has never contained a record is treated as unavailable. ATTEMPTING to open for INPUT will fail. An EMPTY file can be opened for OUTPUT only. When you open for output, COBOL will WRITE a dummy record to the file & then delete it out. A VSAM file that has never contained a record is treated as unavailable. Attempting to open for input will fail. An empty file can be opened for output only. When you open for output, COBOL will write a dummy record to the file & then delete it out. |
|
| 14. |
Explain How Many Ways You Can Load Data In A Vsam Cluster? |
|
Answer» There are TWO WAYS to achieve that.Firstly by USING the REPRO command and SECONDLY by using COBOL program.
There are two ways to achieve that.Firstly by using the REPRO command and secondly by using COBOL program.
|
|
| 15. |
Can You Tell Me How Do You Fix The Problem Associated With Vsam Out Of Space Condition? |
|
Answer» We can fix it by the FOLLOWING.
We can fix it by the following. |
|
| 16. |
What Do You Mean By Define Model Parameter? |
|
Answer» DEFINE MODEL PARAMETER specifies WHETHER the MODEL parameter ALLOWS you to model your cluster by MODELLING it after an existing cluster. DEFINE MODEL parameter specifies whether the MODEL parameter allows you to model your cluster by modelling it after an existing cluster. |
|
| 17. |
Explain What Is The Significance Of The Shareoptions Parameter? |
|
Answer» SHAREOPTIONS PARAMETER specifies how the file may be shared between JOBS and between BATCH and CICS Environments. SHAREOPTIONS parameter specifies how the file may be shared between jobs and between batch and CICS Environments. |
|
| 18. |
Can You Tell Me What Are The Three Levels Of Definition For The Vsam Define? |
|
Answer» They are INDEX, DEFINE CLUSTER and DATA. They are INDEX, DEFINE CLUSTER and DATA. |
|
| 19. |
There Are Seven Idcams Commands In Vsam. Can You Name And Explain Each Of Them? |
Answer»
|
|
| 20. |
Name The Utility Program Closely Associated With Vsam? |
|
Answer» IDCAMS is the UTILITY, the ACCESS METHOD SERVICES utility. IDCAMS is the utility, the access method services utility. |
|
| 21. |
What Do You Mean By A Vsam Slot? |
|
Answer» VSAM slot is a relative RECORD Dataset (RRDS) consists of a specified number of AREAS called slots. Each slot is identified by a relative record number (RRN) which INDICATES its relative position in the file. VSAM slot is a relative record Dataset (RRDS) consists of a specified number of areas called slots. Each slot is identified by a relative record number (RRN) which indicates its relative position in the file. |
|
| 22. |
Can You Name Some Common Vsam Error Conditions And Codes? |
|
Answer» They are end of file (10), duplicate Key (22), RECORD not found (23), Out of space condition is raised (28) ,VSAM logic error (90), open problem (92) and space problem (93).bIt is a COBOL II enhancement to VSAM batch processing expanding the FILE STATUS field.It is defined in WORKING - STORAGE as a six BYTE GROUP item with three two byte elements, the normal return code, the function code and the feedback code. They are end of file (10), duplicate Key (22), record not found (23), Out of space condition is raised (28) ,VSAM logic error (90), open problem (92) and space problem (93).bIt is a COBOL II enhancement to VSAM batch processing expanding the FILE STATUS field.It is defined in WORKING - STORAGE as a six byte group item with three two byte elements, the normal return code, the function code and the feedback code. |
|
| 23. |
Explain What Is The Meaning Of Dynamic Processing In Vsam? |
|
Answer» Dynamic processing means ONE PROGRAM USES both sequential and random processing for a VSAM KSDS file. It is however RARELY used in VSAM. Dynamic processing means one program uses both sequential and random processing for a VSAM KSDS file. It is however rarely used in VSAM. |
|
| 24. |
Explain The Meaning And Syntax For The Start Command? |
|
Answer» In VSAM, the START command is USED to read other than the next VSAM RECORD. For this, A value must be MOVED into the RECORD KEY. HOWEVER, the KEY CLAUSE is optional, but it can be used to specify a relational operator. In VSAM, the START command is used to read other than the next VSAM record. For this, A value must be moved into the RECORD KEY. However, the KEY clause is optional, but it can be used to specify a relational operator. |
|
| 25. |
What Do You Mean By A Vsam Split? |
|
Answer» If there is a memory CRUNCH and there is not enough space in the Control Interval, VSAM PERFORMS a Control Interval SPLIT by moving some records to the FREE Control INTERVALS. If there isn't a free Control Interval,then VSAM performs a control area split by allocating a new control area and moving half of the Control Intervals to it. If there is a memory crunch and there is not enough space in the Control Interval, VSAM performs a Control Interval split by moving some records to the free Control Intervals. If there isn't a free Control Interval,then VSAM performs a control area split by allocating a new control area and moving half of the Control Intervals to it. |
|
| 26. |
To Use The Rewrite Command, How Should The Vsam File Be Opened? |
|
Answer» It should be OPENED Input/Output MODE. It should be opened Input/Output mode. |
|
| 27. |
What Is The Use Of The File Status Clause In The Select Statement In Vsam? |
|
Answer» The FILE STATUS FIELD is used to IDENTIFY the field that VSAM uses to PROVIDE INFORMATION about each I/O Operation for the file. The FILE STATUS field is used to identify the field that VSAM uses to provide information about each I/O Operation for the file. |
|
| 28. |
What Do You Mean By The Cobol Record Key Clause In Vsam? |
|
Answer» The RECORD KEY in the SELECT clause IDENTIFIES the files PRIMARY Key as it will be made available to the PROGRAM. The RECORD KEY in the SELECT clause identifies the files Primary Key as it will be made available to the program. |
|
| 29. |
Is It Required That Primary Key Values Have To Be Unique? Do Alternate Key Values Have To Be Unique? |
|
Answer» PRIMARY KEY values must always be UNIQUE however alternate Key values need not be unique all the TIME. Primary Key values must always be unique however alternate Key values need not be unique all the time. |
|
| 30. |
Why Ci And Ca Splits Are Not Possible In Esds And Rrds? |
|
Answer» In ESDS the new RECORD is added at the END of last record. And no embedded free SPACE is allocated at the TIME of Dataset definition. In the case of RRDS the slots for the records are pre-allocated and so the CI and CA split is not possible. In ESDS the new record is added at the end of last record. And no embedded free space is allocated at the time of Dataset definition. In the case of RRDS the slots for the records are pre-allocated and so the CI and CA split is not possible. |
|
| 31. |
What Do You Mean By Idcams? Explain Its Purpose? |
|
Answer» IDCAMS, also known as ACCESS METHOD Services, is used to perform the following tasks cited below.
IDCAMS, also known as Access Method Services, is used to perform the following tasks cited below. |
|
| 32. |
What Will Happen If There Is No Secondary Allocation Made For Datasets? |
|
Answer» VSAM will INFORM COBOL program of the PROBLEM and TERMINATE the processing of the program. VSAM will inform COBOL program of the problem and terminate the processing of the program. |
|
| 33. |
In A Cobol Select Statement For A Ksds Can You Tell Me What Are The 3 Possibilities For Access? |
|
Answer» The three POSSIBILITIES for ACCESS can be RANDOM, SEQUENTIAL or DYNAMIC. The three possibilities for ACCESS can be RANDOM, SEQUENTIAL or DYNAMIC. |
|
| 34. |
In A Cobol Select Statement, Can You Tell What Is The Organization For A Ksds? |
|
Answer» For a KSDS, the ORGANIZATION is INDEXED. For a KSDS, the ORGANIZATION is INDEXED. |
|
| 35. |
Explain What Is A Base Cluster In Vsam? |
|
Answer» The base cluster in VSAM CONSISTS of the data COMPONENT as WELL as the index component that is REQUIRED for the primary index of a KSDS. The base cluster in VSAM consists of the data component as well as the index component that is required for the primary index of a KSDS. |
|
| 36. |
Explain What Do You Mean By A Upgrade Set In Vsam? |
|
Answer» The UPGRADE set is the list of all AIXS that VSAM must be maintaining for a SPECIFIC base cluster, so that when data in the base cluster is modified or updated, the AIX files are ALSO updated. The upgrade set is the list of all AIXs that VSAM must be maintaining for a specific base cluster, so that when data in the base cluster is modified or updated, the AIX files are also updated. |
|
| 37. |
Explain In Brief What Are The 3 Types Of Vsam Files? |
|
Answer» Below are the 3 types of VSAM files.
Below are the 3 types of VSAM files. |
|
| 38. |
Can You Tell Me How Many Buffers Are Allocated To Vsam Ksds And Esds? |
|
Answer» There are 2 data buffers by DEFAULT for ESDS. For KSDS it allots 2 data buffers and 1 index buffers. Each BUFFER is about 4k. There are 2 data buffers by default for ESDS. For KSDS it allots 2 data buffers and 1 index buffers. Each buffer is about 4k. |
|
| 39. |
How Can You Copy To A Vsam Cluster? |
|
Answer» With the HELP of the IDCAMS UTILITY with the REPRO OPTION. With the help of the IDCAMS utility with the REPRO option. |
|
| 40. |
Explain In Brief How You Can Create A Vsam File? |
|
Answer» You use the IDCAMS UTILITY with the DEFINE CLUSTER OPTION. You use the IDCAMS utility with the DEFINE CLUSTER option. |
|
| 41. |
Can You Tell Me What Are The Codes Returned By The Ams (access Method Services) Command During The Execution In Vsam? |
|
Answer» Every AMS command issues a condition code. If multiple COMMANDS are being executed successively, there might be a requirement to execute or bypass certain commands on the Success or FAILURE of a previous command. The normal condition CODES returned by AMS commands are : 0 - The function was executed successfully. Every AMS command issues a condition code. If multiple commands are being executed successively, there might be a requirement to execute or bypass certain commands on the Success or failure of a previous command. The normal condition codes returned by AMS commands are : 0 - The function was executed successfully. |
|
| 42. |
What Do You Mean By Gdg In Vsam? |
|
Answer» GDG MEANS GENERATION DATA GROUP. GDG means Generation Data Group. |
|
| 43. |
Can You Delete Vsam Files With The Delete Option Of The Disposition Parameter Of Jcl? |
|
Answer»
We cannot DELETE, you have to give a SEPARATE DELETE command in the VSAM cluster.
We cannot delete, you have to give a separate DELETE command in the VSAM cluster. |
|
| 44. |
Is Delete Operation Supported In An Esds? Is Rewrite Operation Possible In Esds? |
|
Answer» The delete operation is not supported. Delete operation is not POSSIBLE in VSAM ESDS. Yes, rewrite operation is possible in an ESDS. The delete operation is not supported. Delete operation is not possible in VSAM ESDS. Yes, rewrite operation is possible in an ESDS. |
|
| 45. |
Explain What Are The Optional Parameters To The Input Dataset While Loading The Empty Cluster With The Data Records? |
|
Answer» i) Skip and Count : In this case, the first two records are skipped and the next four records are printed. The DEFAULT for SKIP is 0, and for COUNT will be printing records from BEGINNING to end. ii) FromKey and ToKey : i) Skip and Count : In this case, the first two records are skipped and the next four records are printed. The default for SKIP is 0, and for COUNT will be printing records from beginning to end. ii) FromKey and ToKey : |
|
| 46. |
What Do You Mean By A Shareoptions Parameter (shr) In Define Cluster Command? |
|
Answer» It is used to define the cross-region and cross-system SHARING capabilities of the DataSet. SYNTAX is SHR (CRvalue CSvalue)
It is used to define the cross-region and cross-system sharing capabilities of the DataSet. Syntax is SHR (CRvalue CSvalue) |
|
| 47. |
Is It Slower If You Access A Record Through Alternative Index As Compared To Primary Index? |
|
Answer» YES it slower because the alternate Key WOULD FIRST locate the PRIMARY Key, which in turn locates the actual record. It requires twice the number of I/Os. Yes it slower because the alternate Key would first locate the primary Key, which in turn locates the actual record. It requires twice the number of I/Os. |
|
| 48. |
What Do You Mean By Recovery And Speed Parameters In Define Cluster Command? |
|
Answer» The parameters RECOVERY (default) and SPEED are mutually exclusive. Recovery is used to pre-format the control areas during the initial DataSet load, if the JOB fails, you can restart but you MUST have a recovery routine already written to restart the job. SPEED does not pre-format the CAs. It is advisable that you specify SPEED to speed up your initial data load. The parameters RECOVERY (default) and SPEED are mutually exclusive. Recovery is used to pre-format the control areas during the initial DataSet load, if the job fails, you can restart but you must have a recovery routine already written to restart the job. SPEED does not pre-format the CAs. It is advisable that you specify SPEED to speed up your initial data load. |
|
| 49. |
What Do You Mean By The Repro Command? |
|
Answer» Whenever a new CLUSTER is created using IDCAMS, the cluster will be empty. By the use of REPRO command, we are ABLE to load records into the cluster. REPRO is used to:
Whenever a new cluster is created using IDCAMS, the cluster will be empty. By the use of REPRO command, we are able to load records into the cluster. REPRO is used to: |
|
| 50. |
How Many Types Of Libraries Are There In Jcl? |
|
Answer» LIBRARIES are of three types: System
Libraries are of three types: System |
|