Explore topic-wise InterviewSolutions in .

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.

51.

What Is The Dd Statement For A Output File?

Answer»

Unless ALLOCATED earlier, will have the following parameters: DISP=(NEW,CATLG,DELETE), UNIT , SPACE & DCB .

Unless allocated earlier, will have the following parameters: DISP=(NEW,CATLG,DELETE), UNIT , SPACE & DCB .

52.

What Do You Do If You Do Not Want To Keep All The Space Allocated To A Dataset?

Answer»

SPECIFY the PARAMETER RLSE ( release ) in the SPACE e.g. SPACE=(CYL,(50,50),RLSE)

Specify the parameter RLSE ( release ) in the SPACE e.g. SPACE=(CYL,(50,50),RLSE)

53.

What Is Disp=(new,pass,delete)?

Answer»

This is a new FILE and create it, if the step TERMINATES normally, pass it to the subsequent steps and if step abends, delete it. This dataset will not exist BEYOND the JCL.

This is a new file and create it, if the step terminates normally, pass it to the subsequent steps and if step abends, delete it. This dataset will not exist beyond the JCL.

54.

How Do You Create A Temporary Dataset? Where Will You Use Them?

Answer»

Temporary DATASETS can be created either by not specifying any DSNAME or by specifying the temporary file INDICATOR as in DSN=&&TEMP.

We use them to carry the output of ONE STEP to another step in the same job. The dataset will not be retained once the job completes.

Temporary datasets can be created either by not specifying any DSNAME or by specifying the temporary file indicator as in DSN=&&TEMP.

We use them to carry the output of one step to another step in the same job. The dataset will not be retained once the job completes.

55.

How Do You Restart A Proc From A Particular Step?

Answer»

In job CARD, SPECIFY RESTART=procstep.stepname
where procstep = NAME of the jcl step that invoked the proc
and stepname = name of the proc step where you WANT EXECUTION to start

In job card, specify RESTART=procstep.stepname
where procstep = name of the jcl step that invoked the proc
and stepname = name of the proc step where you want execution to start

56.

How Do You Skip A Particular Step In A Proc/job?

Answer»

Can USE either condition CODES or use the JCL control STATEMENT IF (only in ESA JCL)

Can use either condition codes or use the jcl control statement IF (only in ESA JCL)

57.

A Proc Has Five Steps. Step 3 Has A Condition Code. How Can You Override/nullify This Condition Code?

Answer»

PROVIDE the override on the EXEC STMT in the JCL as FOLLOWS:
//STEP001 EXEC procname,COND.stepname=value
All parameters on an EXEC stmt in the proc such as COND, PARM have to be overridden like this.

Provide the override on the EXEC stmt in the JCL as follows:
//STEP001 EXEC procname,COND.stepname=value
All parameters on an EXEC stmt in the proc such as COND, PARM have to be overridden like this.

58.

How Do You Override A Specific Ddname/sysin In Proc From A Jcl?

Answer»

// DSN=...

// DSN=...

59.

What Is Notcat ?

Answer»

This is an MVS message indicating that a duplicate catalog entry exists. E.g., if you already have a dataset with dsn = 'xxxx.yyyy' and u try to create one with disp NEW,catlg, you would get this error. the program OPEN and write would go through and at the END of the step the system would try to put it in the system catalog. at this POINT since an entry already exists the catlg would fail and give this message. you can fix the problem by deleting/uncataloging the first data SET and going to the volume where the new dataset exists(this info is in the msglog of the job) and cataloging it.

This is an MVS message indicating that a duplicate catalog entry exists. E.g., if you already have a dataset with dsn = 'xxxx.yyyy' and u try to create one with disp new,catlg, you would get this error. the program open and write would go through and at the end of the step the system would try to put it in the system catalog. at this point since an entry already exists the catlg would fail and give this message. you can fix the problem by deleting/uncataloging the first data set and going to the volume where the new dataset exists(this info is in the msglog of the job) and cataloging it.

60.

What Is 's0c7' Abend?

Answer»

CAUSED by INVALID DATA in a NUMERIC FIELD.

Caused by invalid data in a numeric field.

61.

What Is A S0c4 Error ?

Answer»

STORAGE violation error - can be due to various REASONS. e.g.: READING a file that is not open, INVALID ADDRESS referenced due to subscript error.

Storage violation error - can be due to various reasons. e.g.: READING a file that is not open, invalid address referenced due to subscript error.

62.

What Are Sd37, Sb37, Se37 Abends?

Answer»

All indicate DATASET out of space. SD37 - no SECONDARY ALLOCATION was specified. SB37 - end of vol. and no further volumes specified. SE37 - Max. of 16 EXTENTS already allocated.

All indicate dataset out of space. SD37 - no secondary allocation was specified. SB37 - end of vol. and no further volumes specified. SE37 - Max. of 16 extents already allocated.

63.

What Is S322 Abend ?

Answer»

INDICATES a time out abend. Your PROGRAM has taken more CPU time than the default limit for the JOB class. Could indicate an infinite loop.

Indicates a time out abend. Your program has taken more CPU time than the default limit for the job class. Could indicate an infinite loop.

64.

What Does The Time Parameter Signify ? What Does Time=1440 Mean ?

Answer»

TIME parameter can be used to overcome S322 abends for programs that genuinely NEED more CPU time. TIME=1440 MEANS no CPU time limit is to be APPLIED to this STEP.

TIME parameter can be used to overcome S322 abends for programs that genuinely need more CPU time. TIME=1440 means no CPU time limit is to be applied to this step.

65.

What Is Cond=even ?

Answer»

MEANS execute this STEP even if any of the PREVIOUS steps, TERMINATED ABNORMALLY.

Means execute this step even if any of the previous steps, terminated abnormally.

66.

What Is Cond=only ?

Answer»

Means execute this STEP only if any of the PREVIOUS steps, TERMINATED ABNORMALLY.

Means execute this step only if any of the previous steps, terminated abnormally.

67.

How Do You Check The Syntax Of A Jcl Without Running It?

Answer»

TYPERUN=SCAN on the JOB CARD or USE JSCAN.

TYPERUN=SCAN on the JOB card or use JSCAN.

68.

What Does Iebgener Do?

Answer»

USED to copy one QSAM file to ANOTHER. Source DATASET should be described using SYSUT1 ddname. Destination dataset should be described using SYSUT2. IEBGENR can also do some reformatting of DATA by supplying control cards VIA SYSIN.

Used to copy one QSAM file to another. Source dataset should be described using SYSUT1 ddname. Destination dataset should be described using SYSUT2. IEBGENR can also do some reformatting of data by supplying control cards via SYSIN.

69.

How Do You Send The Output Of A Cobol Program To A Member Of A Pds?

Answer»

CODE the DSN as pds(member) with a DISP of SHR. The disp APPLIES to the pds and not to a SPECIFIC member.

Code the DSN as pds(member) with a DISP of SHR. The disp applies to the pds and not to a specific member.

70.

I Have Multiple Jobs ( Jcls With Several Job Cards ) In A Member. What Happens If I Submit It?

Answer»

Multiple JOBS are SUBMITTED (as many jobs as the number of JOB CARDS).

Multiple jobs are submitted (as many jobs as the number of JOB cards).

71.

I Have A Cobol Program That Accepts Some Input Data. How Do You Code The Jcl Statment For This? ( How Do You Code Instream Data In A Jcl? )

Answer»

ANSWER : //SYSIN DD* INPUT DATA input data /*

72.

Can You Code Instream Data In A Proc ?

Answer»

No.

No.

73.

How Do You Overcome This Limitation?

Answer»

One WAY is to code SYSIN DD DUMMY in the PROC, and then OVERRIDE this from the JCL with instream data.

One way is to code SYSIN DD DUMMY in the PROC, and then override this from the JCL with instream data.

74.

How Do You Run A Cobol Batch Program From A Jcl? How Do You Run A Cobol/db2 Program?

Answer»

To run a non DB2 PROGRAM,

//STEP001 EXEC PGM=MYPROG

To run a DB2 program,

//STEP001 EXEC PGM=IKJEFT01 //SYSTSIN DD * DSN SYSTEM(....) RUN PROGRAM(MYPROG) PLAN(.....) LIB(....) PARMS(...) /*

To run a non DB2 program,

To run a DB2 program,

75.

What Is Steplib, Joblib? What Is It Used For?

Answer»

Specifies that the private library (or libraries) specified should be SEARCHED before the default system libraries in ORDER to locate a program to be executed.

STEPLIB APPLIES only to the particular STEP, JOBLIB to all steps in the job.

Specifies that the private library (or libraries) specified should be searched before the default system libraries in order to locate a program to be executed.

STEPLIB applies only to the particular step, JOBLIB to all steps in the job.

76.

What Is Order Of Searching Of The Libraries In A Jcl?

Answer»

FIRST any private LIBRARIES as SPECIFIED in the STEPLIB or JOBLIB, then the system libraries such as SYS1.LINKLIB. The system libraries are specified in the link list.

First any private libraries as specified in the STEPLIB or JOBLIB, then the system libraries such as SYS1.LINKLIB. The system libraries are specified in the link list.

77.

What Happens If Both Joblib & Steplib Is Specified ?

Answer»

JOBLIB is IGNORED.

JOBLIB is ignored.

78.

When You Specify Mutiple Datasets In A Joblib Or Steplib, What Factor Determines The Order?

Answer»

The LIBRARY with the LARGEST BLOCK size should be the first ONE.

The library with the largest block size should be the first one.

79.

How To Change Default Proclib ?

Answer»

//ABCD JCLLIB ORDER=(ME.MYPROCLIB,SYS1.PROCLIB)

//ABCD JCLLIB ORDER=(ME.MYPROCLIB,SYS1.PROCLIB)

80.

The Disp In The Jcl Is Mod And The Program Opens The File In Output Mode. What Happens ? The Disp In The Jcl Is Shr And The Pgm Opens The File In Extend Mode. What Happens ?

Answer»

Records will be WRITTEN to end of FILE (APPEND) when a WRITE is done in both cases.

Records will be written to end of file (append) when a WRITE is done in both cases.

81.

What Are The Valid Dsorg Values ?

Answer»

PS - QSAM, PO - PARTITIONED, IS - ISAM

PS - QSAM, PO - Partitioned, IS - ISAM

82.

What Is The Meaning Of Keyword In Jcl? What Is Its Opposite?

Answer»

A KEYWORD in a JCL statement may appear in different places and is RECOGNIZED by its name, eg MSGCLASS in the JOB statement The opposite is positional words, where their meaning is based on their position in the statement, eg in the DISP keyword the =(NEW,CATLG,DELETE) meaning are based on first, second and third position.

A keyword in a JCL statement may appear in different places and is recognized by its name, eg MSGCLASS in the JOB statement The opposite is positional words, where their meaning is based on their position in the statement, eg in the DISP keyword the =(NEW,CATLG,DELETE) meaning are based on first, second and third position.

83.

Describe The Job Statement, Its Meaning, Syntax And Significant Keywords.?

Answer»

The JOB statement is the FIRST in a JCL stream Its format is // jobname, keyword JOB, accounting information in brackets and KEYWORDS, MSGCLASS, MSGLEVEL, NOTIFIY, CLASS, etc .

The JOB statement is the first in a JCL stream Its format is // jobname, keyword JOB, accounting information in brackets and keywords, MSGCLASS, MSGLEVEL, NOTIFIY, CLASS, etc .

84.

Describe The Exec Statement, Its Meaning, Syntax And Keywords?

Answer»

The EXEC statement identifies the PROGRAM to be executed VIA a PGM=program NAME keyword Its format is //jobname EXEC PGM=program name The PARM= keyword can be used to pass external values to the executing program.

The EXEC statement identifies the program to be executed via a PGM=program name keyword Its format is //jobname EXEC PGM=program name The PARM= keyword can be used to pass external values to the executing program.

85.

Describe The Dd Statement, Its Meaning, Syntax And Keywords.

Answer»

The DD statement links the EXTERNAL Data SET name (DSN) to the DDNAME coded within the executing program It links the File names within the program CODE to the File names know to the MVS OPERATING system The syntax is // ddname DD DSN=Data Set name Other keywords after DSN are DISP, DCB, SPACE, etc .

The DD statement links the external Data Set name (DSN) to the DDNAME coded within the executing program It links the File names within the program code to the File names know to the MVS operating system The syntax is // ddname DD DSN=Data Set name Other keywords after DSN are DISP, DCB, SPACE, etc .

86.

What Is A Proc? What Is The Difference Between An In Stream And A Catalogued Proc?

Answer»

PROC stands for PROCEDURE It is 'canned' JCL invoked by a PROC statement an in stream PROC is presented WITHIN the JCL; a catalogued PROC is referenced from a proclib partitioned Data Set.

PROC stands for procedure It is 'canned' JCL invoked by a PROC statement an in stream PROC is presented within the JCL; a catalogued PROC is referenced from a proclib partitioned Data Set.

87.

What Is The Difference Between A Symbolic And An Override In Executing A Proc?

Answer»

A symbolic is a PROC placeholder; the value for the symbolic is supplied when the PROC is invoked, EG &symbol=value an override REPLACES the PROC's statement with another ONE; it substitutes for the ENTIRE statement.

A symbolic is a PROC placeholder; the value for the symbolic is supplied when the PROC is invoked, eg &symbol=value an override replaces the PROC's statement with another one; it substitutes for the entire statement.

88.

What Is Restart? How Is It Invoked?

Answer»

A RESTART is a JOB statement KEYWORD it is used to restart the job at a specified s step RATHER than at the BEGINNING.

A RESTART is a JOB statement keyword it is used to restart the job at a specified s step rather than at the beginning.

89.

What Is A Gdg? How Is It Referenced? How Is It Defined? What Is A Modeldscb?

Answer»

GDG stands for GENERATION DATA GROUP it is a Data Set with versions that can be referenced ABSOLUTELY or relatively it is defined by an IDCAMS define generation data group execution.

GDG stands for generation data group it is a Data Set with versions that can be referenced absolutely or relatively it is defined by an IDCAMS define generation data group execution.

90.

Explain Concatenating Data Sets?

Answer»

DATA SETS can be grouped in a DD STATEMENT one after another, eg in a JOBLIB statement where the load module can EXIST in one of MANY Data Sets.

Data Sets can be grouped in a DD statement one after another, eg in a JOBLIB statement where the load module can exist in one of many Data Sets.

91.

What Is The Difference Between Specifying Disp=old And Disp=shr For A Data Set?

Answer»

A DISP=OLD denotes exclusive control of the DATA SET; DISP=SHR MEANS there is no EXCLUSIVITY.

A DISP=OLD denotes exclusive control of the Data Set; DISP=SHR means there is no exclusivity.

92.

What Is Mod And When Would You Use It?

Answer»

DISP=MOD is used when the Data Set can be EXTENDED, i.e., you can ADD records at the END of an existing Data Set

DISP=MOD is used when the Data Set can be extended, i.e., you can add records at the end of an existing Data Set

93.

What Are The Keywords Associated With Dcb? How Can You Specify Dcb Information? What Is The Os Precedence For Obtaining That Dcb Information, I.e. Where Does The System Look For It First?

Answer»

The keywords associated with the DCB parameter are LRECL, RECFM, BLKSIZE and DSORG The DCB INFORMATION can be SUPPLIED in the DD STATEMENT The system looks for DCB information in the PROGRAM code first.

The keywords associated with the DCB parameter are LRECL, RECFM, BLKSIZE and DSORG The DCB information can be supplied in the DD statement The system looks for DCB information in the program code first.

94.

How Do You Designate A Comment In Jcl?

Answer»

The COMMENT STATEMENT is //* FOLLOWED by the COMMENTS.

The comment statement is //* followed by the comments.

95.

What Is The Meaning Of The Exec Statement Keyword, Cond? What Is Its Syntax?

Answer»

COND specifies the CONDITIONS for executing the subsequent job STEP the value after the COND= is compared to the return codes of the preceding STEPS and if the COMPARISON is true, the step is bypassed

COND specifies the conditions for executing the subsequent job step the value after the COND= is compared to the return codes of the preceding steps and if the comparison is true, the step is bypassed

96.

What Is The Improvement To Cond= In The Latest Version Of Mvs?

Answer»

MVS now allows for an IF BRACKETED by an END IF AROUND any job step to REPLACE the COND= syntax Again, if the IF statement is true, the step is bypassed.

MVS now allows for an IF bracketed by an END IF around any job step to replace the COND= syntax Again, if the IF statement is true, the step is bypassed.

97.

What Is The Purpose Of The Parm Keyword In The Exec Statement?

Answer»

The VALUE after the PARM= specifies CONTROL INFORMATION to be passed to the executing program of the job STEP

The value after the PARM= specifies control information to be passed to the executing program of the job step

98.

What Is The Purpose And Meaning Of The Region Keyword And What Jcl Statement Is It Associated With?

Answer»

REGION specifies the MAXIMUM CPU memory allocated for a PARTICULAR JOB or job step If REGION is in the JOB card, it relates to the entire job; if in the EXEC STATEMENT, it relates to the job step.

REGION specifies the maximum CPU memory allocated for a particular job or job step If REGION is in the JOB card, it relates to the entire job; if in the EXEC statement, it relates to the job step.

99.

What Is The Purpose And Meaning Of The Time Keyword And What Jcl Statement Is It Associated With?

Answer»

TIME specifies the MAXIMUM CPU time allocated for a particular job or job STEP if TIME is in the JOB card, it relates to the ENTIRE job; if in the EXEC STATEMENT, it relates to the job step.

TIME specifies the maximum CPU time allocated for a particular job or job step if TIME is in the JOB card, it relates to the entire job; if in the EXEC statement, it relates to the job step.

100.

What Is The Meaning Of Data Definition Name (dd Name) And Data Set Name (dsn Name) In The Dd Statement?

Answer»

Data definition NAME is the eight CHARACTER designation after the // of the DD statement It matches the INTERNAL name specified in the steps executing program In COBOL that's the name specified after the ASSIGN in the SELECT ASSIGN statement Data Set name is the operating system (MVS) name for the FILE.

Data definition name is the eight character designation after the // of the DD statement It matches the internal name specified in the steps executing program In COBOL that's the name specified after the ASSIGN in the SELECT ASSIGN statement Data Set name is the operating system (MVS) name for the File.