db2 maintains information about the data... a.in tables.
b.in a set of tables known as db2 catalog. c.in db2
database. d.none of the above. 1
What is the maximum number of tables that can be stored on a
Partitioned Table Space ? 1
what is contained in the DB2 node lock file? A) data base
names B) data base users names C) license keys D) server
names Accenture 5
Can a primary key have null values? If we try to insert a
null value in a primary key column, will it work or give an
error code? 6
When you are working with the project after coding what will
u do? Like what type of documents u will prepare? How will u
do testing? 2
how to delete perticular row from table for ex. how you will
delete 3rd row from table please answer THANKS IN ADVANCE IBM 7
max number of columns in a db2 table? 6
What is package versioning? Please give an example. 1
What is the picture clause of the null indicator variable? 6
How do you filter out the rows retrieved from a Db2 table ? 1
What is DB2 (IBM Database 2)? 3
Can any one tell me about Restart logic in DB2.

Answers were Sorted based on User's Feedback



db2 maintains information about the data... a.in tables. b.in a set of tables known as db2 catalog...

Answer / guest

que) can primary key have null values?
ans) no, primary key muse have the value (not null)

que)how to delete particular row from table.(3rd row)
delete from emp
where rowid=3

que)What is the picture clause of the null indicator variable?
ans) 01 sal-ind pic s9(4) usage comp
exec sql
select empno,sal
into :empno,:sal:sal-ind
from emp
where empno='e007'
end-exec.

Restart Logic...
- There is only one commit or rollback before termination of
transaction.
- suppose a application program is processing 1 million
records and the program abends at 90th thousand record. so
after restart of the program it is going to process all 90
thousand successfully but not committed records once again.
then this will became a problem..
- so when ever we are doing such huge updation we need to
use commit frequency properly. Let us say we have design
application commit frequency at 1000 record. If the program
abands at 1500 record it should get restart at 1001 record.
this is called as restart logic.
- for that create a temporary table with dummy record and
insert a record in the table for every commit with a key and
occurrence of the commit. this should happen just before the
issue of the commit.
- then the first paragraph from the procedure should read
last record from the table and skipped all the records that
are successfully processed and committed (1000th record).
After the processing of all the records, delete the entries
in the table and issue one final commit.


correct me if i am wrong
thanks














Is This Answer Correct ?    0 Yes 0 No

db2 maintains information about the data... a.in tables. b.in a set of tables known as db2 catalog...

Answer / guest

que) can primary key have null values?
ans) no, primary key muse have the value (not null)

que)how to delete particular row from table.(3rd row)
delete from emp
where rowid=3

que)What is the picture clause of the null indicator variable?
ans) 01 sal-ind pic s9(4) usage comp
exec sql
select empno,sal
into :empno,:sal:sal-ind
from emp
where empno='e007'
end-exec.

Restart Logic...
- There is only one commit or rollback before termination of
transaction.
- suppose a application program is processing 1 million
records and the program abends at 90th thousand record. so
after restart of the program it is going to process all 90
thousand successfully but not committed records once again.
then this will became a problem..
- so when ever we are doing such huge updation we need to
use commit frequency properly. Let us say we have design
application commit frequency at 1000 record. If the program
abands at 1500 record it should get restart at 1001 record.
this is called as restart logic.
- for that create a temporary table with dummy record and
insert a record in the table for every commit with a key and
occurrence of the commit. this should happen just before the
issue of the commit.
- then the first paragraph from the procedure should read
last record from the table and skipped all the records that
are successfully processed and committed (1000th record).
After the processing of all the records, delete the entries
in the table and issue one final commit.


correct me if i am wrong
thanks














Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More JCL Interview Questions

There are 2PROCS in a JCL. I want following conditions to be carried out 1) 1st PROC should be executed as such In second PROC 2) First 4steps should not be executed 3) 5th step should not be executed 4) 6th and 7th step should be executed The change should be done only in the JCL and PROC should be untouched ?

3 Answers   ADP,


A statement about PROCs is " In PROCs, Symbolic Parameters can be assigned on PROC and EXEC", BUT On which EXEC, (i) On the JCL's EXEC which is calling to PROC1. (Inside JCL, EXEC PROC1) (ii) or On the PROC's EXEC where it calls the PGM1. (Inside PROC, EXEC PGM=PGM1)

1 Answers   IBM,


One dataset is creating in the step1 with LRECL of 133 and the same dataset is used in the next step in DISP=SHR mode, but while scanning the JCL the following error is thrwon. Please verify the below JCL $/SEPP030.PROVIDER DD DSN=Z1225BT.F5750PG9.F5910PRV.QC#A6868 //ERRORRPT DD DSN=F5910&ST&IN..F5910EPP.ERRORRPT.P&CYCDATE, --ERRORRPT DD DSN=F5910PG.F5910EPP.ERRORRPT.P, // DISP=&DISNCD,UNIT=&DELQ, -- DISP= (NEW,CATLG,DELETE),UNIT=DELQ, // SPACE=(TRK, (30,15),RLSE), // DCB=&DCB2 -- DCB= (PPG.METMODEL,BLKSIZE=0,LRECL=133,RECFM=FB) $/SEPP030.ERRORRPT DD DSN=Z1225BT.F5910EPP.ERRORRPT.AOUTPUT //SEPP040 EXEC PGM=FILEAID,COND= (0002,EQ,SEPP030) //SYSPRINT DD SYSOUT=* //SYSLIST DD SYSOUT=* //DD01 DD DSN=SYSCMN.PROD.CCLIB (F5910EP1),DISP=SHR $/SEPP040.DD01 DD DSN=Z1225BT.TEST.CCLIB (F5910EP1) E1 - DSS20791E - DATA SET 'Z1225BT.F5910EPP.ERRORRPT.AOUTPUT' HAS AN LRECL OF 133 COULD NOT BE OPENED BECAUSE THE CODED LRECL WAS 80. // DD DSN=F5910&ST&IN..F5910EPP.ERRORRPT.P&CYCDATE, -- DD DSN=F5910PG.F5910EPP.ERRORRPT.P, // DISP=SHR $/ DD DSN=Z1225BT.F5910EPP.ERRORRPT.AOUTPUT please find the error code in the above mentioned lines and please suggest me about the error and the solution for that.

3 Answers   Cognizant,


i have a string of 80 chars i want to replace 4th char with "a"?

3 Answers   CSC,


I have a job (4 steps) with time parameter coded in job & exec, say time=10 in job & time =3,2,2,4 in each steps. Will the job executes successfully?

4 Answers   Cognizant,






What are SD37, SB37, SE37 abends?

4 Answers  


Can we use COND=EVEN on a job card, when jobs are scheduled through scheduler?

1 Answers   L&T,


One of My Job is running in production, which contains five steps?i want to pass the input to FIFTH step while running is it possible? if how?

1 Answers   CTS,


Is there a way to check for an empty file in JCL other than using IEBCOMPR and the command PRINT COUNT(1)?

8 Answers  


What do you understand by the term “keyword” with respect to jcl and what is the opposite of the term?

0 Answers  


What is a procedure?

1 Answers  


What is the use of DSNDB07 ?

1 Answers  


Categories