5 avg. rating (100% score) - 1 votes
Looking to crack IBM-JCL&VSAM job interview? Worried about commonly asked IBM-JCL&VSAM job questions along with answers? Then wisdomjobs is the right way to get started. You can use the JCL DD code with the RECORG parameter to make a temporary or permanent VSAM data set., Dataset does not have to be system managed and SMS must be active. The system catalogs a stable VSAM dataset when the dataset is allocated. With SMS, you can alternatively specify a data class that includes RECORG. There are many IBM-JCL&VSAM jobs available on the market for positions like Project Manager, Software Engineer, Mainframe Developer, System Engineer, System Analyst, Team Leader, Business Analyst, Mainframe Application Developer etc. Visit our IBM-JCL&VSAM job interview questions and answers page for more details on IBM-JCL&VSAM job interview questions to win the best job.
Question 1. What Do You Mean By Include Statement In Jcl?
Answer :
An INCLUDE statement identifies a member of a PDS that contains this set of JCL statements is called an INCLUDE group. The system replaces the INCLUDE statement with the statements in the INCLUDE group.
Question 2. What Are S0c1, S0c4, S0c5, S0c7 Abends?
Answer :
Question 3. Why Do You Use A Control Card?
Answer :
A CONTROL CARD can be a member of a PDS or a sequential dataset and is used for storing the date fields, definitions of VSAM files etc., We use CONTROL CARD because we cannot use an in-stream procedure in a procedure. Generally you will be calling a PROC from your JCL and you cannot code instream procedure in the PROC and so you will point to the dataset, which is called controlcard.
Question 4. How Do You Submit Jcl Via A Cobol Program?
Answer :
In your JCL define as:
//JOBA JOB 1111,JOB1 //STEP01 EXEC PGM=PROG1 //ddname DD SYSOUT=
(*,INTRDR)....and your COBOL (PROG1) should look like this: SELECT JCL-FILE ASSIGN TO ddname.
Open this file and write the JCL statements into this file.
Example: MOVE '//TESTJOB JOB 1111,VISVEISH' TO JCL-REC.MOVE '//STEP01 EXEC
PGM=IEFBR14' TO JCL-REC.and close this file. Then TESTJOB will be submitted.
Question 5. How Do You Submit A Jcl Under Cics Environment?
Answer :
Pass all the JCL codes to a COBOL variable (should be declared using OCCURS clause) and then write the line one by one to the spool using CICS commands like SPOOLClose, SPOOLOpen and SPOOLWrite. For more help refer CECI of CICS or CICS manual.
Answer :
TIME=1440
Question 7. Define Cond Parameter In Jcl?
Answer :
COND is a condition parameter, consists of 2 subparameters, 1st - return code from the previous step, 2nd - condition. If COND is true, the step on which COND is coded will be BYPASSED. It is compared with system return code of previous step //STEP1 EXEC PGM=ABCD //STEP2 EXEC PGM=XYZ, cond=(4,lt) STEP 2 will be executed when system return code of step1 is less than 4.
Question 8. What Is Meant By S0c-07 System Abend Codes?
Answer :
S0C7 - Data exception error - you will get it whenever you are trying to move the low values or spaces into the numeric field, or compare the numeric fields with low values, or try to do some arithmetic operations on the low values. To avoid this you have to always initialize the numeric fields otherwise they will contain the low values.
Question 9. How To Pass The Temp Dataset Form One Job Step To Another?
Answer :
By specifying the DISP as PASS for the temp dataset.
Question 10. Write A Jcl To Execute A Job By 7:00 Am On Jan 20,1986?
Answer :
The code is: //*MAIN DEADLINE=(0700,B,012086)
Question 11. How Many Types Of Libraries Are There In Jcl?
Answer :
Libraries are of three types: System
Question 12. 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:
Question 13. 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.
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.
Question 15. 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)
Answer :
i) Skip and Count :
Syntax:
SKIP(2)
COUNT(4)
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 :
PRINT -
INDATASET (CUSTOMER.KSDS.CLUSTER) -
FROMKEY (111111) -
TOKEY (444444)
Will print all records with Key value ranging from 111111 to 444444.
iii) FROMADDRESS and TOADDRESS.
iv) FROMNUMBER and TONUMBER.
Question 17. 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.
Question 18. 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.
Question 19. What Do You Mean By Gdg In Vsam?
Answer :
GDG means Generation Data Group.
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.
4 - A problem was encountered while executing the function, WARNING.
8 - The requested function was executed, but major specifies were unavoidably bypassed,ERROR.
12 - The requested command could not be performed because of a logical error, SEVERE.
16 - A severe error occurred causing the remainder of the command stream to be bypassed., FATAL.
Question 21. Explain In Brief How You Can Create A Vsam File?
Answer :
You use the IDCAMS utility with the DEFINE CLUSTER option.
Question 22. How Can You Copy To A Vsam Cluster?
Answer :
With the help of the IDCAMS utility with the REPRO option.
Question 23. 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.
Question 24. Explain In Brief What Are The 3 Types Of Vsam Files?
Answer :
Below are the 3 types of VSAM files.
Question 25. 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.
Question 26. 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.
Question 27. In A Cobol Select Statement, Can You Tell What Is The Organization For A Ksds?
Answer :
For a KSDS, the ORGANIZATION is INDEXED.
Answer :
The three possibilities for ACCESS can be RANDOM, SEQUENTIAL or DYNAMIC.
Question 29. 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.
Question 30. 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.
Question 31. 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.
Answer :
Primary Key values must always be unique however alternate Key values need not be unique all the time.
Question 33. 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.
Question 34. 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.
Question 35. To Use The Rewrite Command, How Should The Vsam File Be Opened?
Answer :
It should be opened Input/Output mode.
Question 36. 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.
Question 37. 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.
Question 38. 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.
Question 39. 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.
Question 40. 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.
Question 41. Name The Utility Program Closely Associated With Vsam?
Answer :
IDCAMS is the utility, the access method services utility.
Question 42. There Are Seven Idcams Commands In Vsam. Can You Name And Explain Each Of Them?
Answer :
Question 43. Can You Tell Me What Are The Three Levels Of Definition For The Vsam Define?
Answer :
They are INDEX, DEFINE CLUSTER and DATA.
Question 44. 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.
Question 45. 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.
Question 46. 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.
Question 47. 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.
Question 48. 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.
Question 49. 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.
Question 50. 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.
Question 51. How Can You Load A Vsam Data Set With Records ?
Answer :
For loading we can use the REPRO command.
Question 52. 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.
Question 53. 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)
Question 54. 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.
Question 55. 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.
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.
Answer :
You can use the LISTCAT command.
Question 58. What Are The Different Types Of Vsam Datasets?
Answer :
Question 59. 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.
Question 60. 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.
Question 61. 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.
IBM-JCL&VSAM Related Tutorials |
|
---|---|
VSAM Tutorial | IBM-CICS Tutorial |
IBM DB2 Tutorial | COBOL Tutorial |
DB2 Using SQL Tutorial | IMS/DB Tutorial |
IBM-JCL&VSAM Related Practice Tests |
|
---|---|
VSAM Practice Tests | IBM - VSAM Practice Tests |
IBM-CICS Practice Tests | IBM DB2 Practice Tests |
COBOL Practice Tests | DB2 Using SQL Practice Tests |
IBM-JCL&VSAM Practice Tests |
Job Control Statements
Job Control Tasks
Format Of Statements
Syntax Of Parameters
Procedures And Symbols
Started Tasks
Jcl Command Statement.
Command Statement
Comment Statement.
Cntl Statement
Dd Statement
Special Dd Statements
Delimiter Statement
Endcntl Statement
Exec Statement
If/then/else/endif Statement Construct
Include Statement
Jcllib Statement
Job Statement
Null Statement
Output Jcl Statement
Pend Statement
Proc Statement
Set Statement
Xmit Jcl Statement
Jes2 Control Statements
Jes3 Control Statements
Text Resumes
Visual Resumes
Social Resumes
Resume Quality
IT Resume Samples
MARKETING Resume Samples
HR Resume Samples
All rights reserved © 2018 Wisdom IT Services India Pvt. Ltd
Wisdomjobs.com is one of the best job search sites in India.