How do you Load a table ?? and what is Load replace ?

Answers were Sorted based on User's Feedback



How do you Load a table ?? and what is Load replace ?..

Answer / karthikeyan@ibm

In General, system will have standard PROC(DSNUPROC) to
load the Table.Three symbolic parameter needs to be passed.
But only one parameter is mandatory SYSTEM=DB2T(subsystem).
Let me explain the Proc. The Proc contains a step with
DSNUTILB as program to load the table. In Parms, pass the
DB2 susbsystem. In SYSREC ddname points to the dataset that
contains the records to be load.SYSIN ddname points to the
control card that is used to load the table.Control card
contains information like tablename to be loaded, Position
of the column and other options like LOAD with REPLACE or
Load with RESUME, ENFORCE YES OR NO and LOG Yes OR NO.

When you want to specify REPLACE option, all the records or
rows in the table are deleted before loading and RESUME
option will retain the old records or rows in the table.

The tablespace will put in COPY PENDING status when you
load the table with Option LOG NO.

//DSNUPROC EXEC PGM=DSNUTILB,REGION=6144K,PARM='DB2'
//SYSREC DD DSN=&LOADdataset,DISP=OLD
//SYSIN DD DSN=&Controldataset,DISP=OLD

Is This Answer Correct ?    26 Yes 3 No

How do you Load a table ?? and what is Load replace ?..

Answer / sasi

load a Table using LOAD UTILITY provided by db2.
LOAD REPLACE
replace old data in the Table(resets a tablespace and
related indexes to empty before loading)

Is This Answer Correct ?    18 Yes 3 No

Post New Answer

More DB2 Interview Questions

How can you display the current date & current time ?

1 Answers   Cap Gemini,


Is schema the same as database?

0 Answers  


How to handle null values in db2

4 Answers  


What is load utility in db2?

0 Answers  


Outputs of explain are with matchcols = 0. What does this signify?

0 Answers  






have 3 tables table1, table2 and table3 which contains employee information. table1 is master table, table2 contains emp details like emp no and so on, table 3 contains emp salary. so if any emp leave company between 25th - 30th of every month it has to get updated in tables. but it is not getting updated. What is the reason.

0 Answers  


Explain the function of data manager.

0 Answers  


what are the copybook changes generally we done?can anyone tell me......... Thanks in advance........

1 Answers  


What is the use of COMMAREA ?Minimum how much data we can pass from it?

7 Answers   Cap Gemini,


What is a Database Request Module(DBRM)?

4 Answers  


difference between group clause and order clause

1 Answers  


Explain the EXPLAIN statement?

1 Answers  


Categories