You are on page 1of 3

1) What are procedures? Mention their types and differences.

CATALOGED : Is stored in different PDS. (// stepname EXEC proc1)


Use PROCLIB statement in JOB statement.
INSTREAM : In instream procedures PEND statement is used.
2) How to override a parameter in exec statement of a procedure?
3) How to override a dataset name in a procedure?
//STEP1.DD1 DD DSN=HFGHFHFJJHJFJ
4) What is the dd name you specify for a proclib?
PROCLIB
5) Which overrides among steplib and joblib?
STEPLIB
6) What are the begining and ending statements of a procedure?
PROC and PEND
7) Study about tape data sets in manual (about label parameter)
and how to use it in a jcl when there is not enough space on
the dasd to hold the whole dataset( look at compress option).
8) Explain the DISP and DCB parameters.
9) You make a search for '..' (two dots) in the whole
jcl library you may find some datasets BP.AA.AA..A
just know what it means.
10) Which utility is used to create a GDG ?
IDCAMS , IEBGENER
11) What is iefbr14 utility ?
A null program , Genarally supports dd function.
12) Have you seen '&' (single ampersand) in a jcl. What does it
imply ?
13) What does MSGCLASS and MSGLEVEL parameters specify ?
MSGLEVEL :
14) What does TIME=nolimit specify ?
Default time of that Class.
15) What does disp=mod do ?
16) Mention all the utilities you have used.
17) What is the the use of IEBGENER other than for copying ?
used to allocate GDGs
18) How do you copy a VSAM dataset to VSAM dataset thru jcl ?
IDCAMS
REPRO
19) Can you use IEBGENER to copy a VSAM dataset to a flat file ?
YES
20) What is the relation between DSN , ddname and logical file
name ?
21) What utility do you use to run a DB2/COBOL pgm and
IKJEFT01, WE SPECIFY IN
SYSIN DD*
DSNRUN(SYSTEM NAME)
PROGRAM(PROGRAM ID),
PLAN(PLAN NAME)
where do you specify the program id ?
where do you specify the program id ?
22) What is the use of sysin statement when you are executing
WE PASS VALUES AT RUN TIME.
a cobol program ?

1) What are host variables ?


2) How and why are cursors defined ? Give the actual steps .
3) What is a DB2 catalog ?
SYSTEMS TABLES Eg. SYSIBM.SYSCOLUMNS , SYSIBM.SYSTABLES
4)

What does Runstats utility do ?


THE MODIFICATIONS YOU DO
RUNSTAT.
5)

WILL UPDATED BY IN SYSTEM CATALOG BY

If a program has a select statement in it and a person


is binding it but he has no select authority on that
table. Will the bind be successful ?
NO

6)

Explain the bind operation.

7) What is precompile ?
8) What is a dbrm ?
9) what is the input to bind and what is it's output ?
INPUT : DBRM
OUTPUT : APPLICATION PLAN.
10) What is a package ?
11) We define cursors on selects - At what stage does the
select actually get executed ?
AT THE TIME OF FETCHING FROM CURSOR.
Ans : When we issue Open Cursor cursor-name.
12) What are the difft levels of locks in DB2 ?
ROW LEVEL LOCKING : CURSOR STABILITY
PAGE LEVEL LOCKING : REPETABLE READ.
13) Where do you specify the Locksize ?
14) What is Cursor Stability and Repeatable Read ?
ISOLATION LEVELS
15) What is a Page in DB2.
32K ,4K
16) In which VSAM type of dataset is the actual DB2
table data stored ?
LDS
17) What is a primary key , Index , secondory Index ,
Foriegn Key ?
18) What are the difft types of table spaces ?
SIMPLE , SEGMENTED , PARTIONED
19) Can you insert rows into a new table without
creating an Index ?
YES
20) What is a Join ?
21) What is a view ? What are its advantages ?
22) What are objects and entities in DB2 ?
23) What are error codes 100 , -803 , -811 , -818 ,
-911 , -913 ?
24) What are +ve error codes?
25) What are Commit and Rollback ?
26) What is Point of Consistency ?
27) What are the delete Rules - Delete with Cascade

- Delete Restrict
- Delete with Set Null
28) What are Indicator Variables ?
SUPPOSE IF THERE ARE NULL VALUES IN A COLUMN AND IF YOU ARE FETCHING THAT
COLUMN IN HOST VARIABLES YOU WILL GET AN ERROR CODE.
SO IN ORDER TO AVOID THAT WE DEFINE INDICATOR VARIABLE .
29) What is SQLCA ? How do you use it in cobol pgm ?
30) Can you drop a column in DB2 table ? Or can you insert
a column in DB2 table ?
NO,YES

You might also like