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

When we give TYPERUN = SCAN , what are the syntax errors we get?

5 Answers   Kanbay,


How to check empty file in jcl?

4 Answers   Infosys,


a set statement is used to define commonly used symbolic across job steps or procedures. It initializes the previous values in the symbolic names. It has to be defined before the first use of the symbolic names in the jcl. State whether true or false?

0 Answers   IBM,


What are the parameter we cannot use in procedure?

0 Answers  


what happens in conversion stage in job processing?

0 Answers   IBM,






I have 20 steps in a job... step01, 02....step17...step20. For some reason I want to execute step17 only if the return code for all the previous steps are less than or equal to 4. otherwise if return code for any of the previous 16 steps is greater than 4, then step17 should be bypassed. How do I do that ?? how and in which step should i formulate COND parameter

8 Answers  


how many types of sorts are there in jcl?

2 Answers   IBM,


1)what is compilation jcl for cobol program but it is calling another program 2)what is compilation jcl for cobol program but it is calling another program(in this, main program is pure cobol but sub program is cobol+db2 program.can anyone please answer me for above questions. it's very urgent

4 Answers   Mind Tree,


How To get the last record in VSAM file in cluster? and How can u get the ksds file records into ur cobol program ? Pls tell me about these two questions.

1 Answers   Cap Gemini,


How do you skip a particular step in a proc/JOB?

5 Answers   CSC, CTS,


Can we change a FB file to VB file in JCL? Please help

1 Answers  


Can you delete the GDG base without deleting GDG generations ?

7 Answers   Cap Gemini,


Categories