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

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does runstats do in db2?

689


What is the maximum number of columns in a db2 table?

829


How can you validate Sql errors during cursor operation in db2 pgms and where do you code?

1814


What is the difference between nvl and coalesce?

684


What is difference between alias and synonym in db2?

726






What is coalesce in db2?

765


How do I optimize a query in db2?

710


How can deadlocks be resolved?

626


Is it possible to alter a table – for example adding a column, when another user is accessing or updating some columns?

735


i want to maintain uniqueness on pdf without make lf??????????

1739


Is db2 a mainframe?

678


What is blu acceleration in db2?

697


What is cursor in dbms?

701


In an sql table that is embedded, what is the procedure to retrieve rows that are part of a db2 table?

725


What is scrollable cursor in db2?

690