|
|
| Author |
Message |
sree reddy
New User
Joined: 20 Jul 2007 Posts: 17 Location: bangalore
|
|
|
|
Hi,
I have file which has data with decimal points , i want to load it to db2 tables, can any one send me the jcl to work out with this.
Thanks |
|
| Back to top |
|
 |
References
|
Posted: Thu Jun 26, 2008 10:20 pm Post subject: Re: Load data from a flat file to db2 tables |
 |
|
|
 |
dick scherrer
Global Moderator
Joined: 23 Nov 2006 Posts: 7505 Location: 221 B Baker St
|
|
|
|
Hello,
To know the correct way to do this on your system, you should ask some one who already loads db2 data from qsam files. You might also talk with your db2 support people.
There should be a standard way to load tables and your new process should use that standard.
If you are interested in seeing how others have done this, there are multiple topics on loading data in the forum. |
|
| Back to top |
|
 |
debajyoti2040 Currently Banned New User
Joined: 25 May 2007 Posts: 5 Location: Bangalore
|
|
|
|
Hi,
The best way to load a DB2 table is using a LOAD utility.
Just add the following to the LOad utility JCl
//DSNUPROC.SYSIN DD *
LOAD DATA INDDN(SYSREC) RESUME YES
INTO TABLE userid.Tablename(
column1 POSITION (1) datatype(datasize),
column2 POSITION (n) datatype(datasize)
)
/*
//DSNUPROC.SYSREC DD DSN=<source dataset name>,Disp=SHR
Work this out definitely this will work
Regards,
Deb |
|
| Back to top |
|
 |
RAHUL_PIONEER
New User
Joined: 02 Jul 2008 Posts: 3 Location: hyderabad
|
|
|
|
Hi,
What is the difference between loading from flat file to table and loading
from sequential file to table in jcl.
Can anyone throw some light |
|
| Back to top |
|
 |
PeD
Active User
Joined: 26 Nov 2005 Posts: 268 Location: Belgium
|
|
|
|
No difference.
"Flat file" is not a technical term. |
|
| Back to top |
|
 |
dick scherrer
Global Moderator
Joined: 23 Nov 2006 Posts: 7505 Location: 221 B Baker St
|
|
|
|
Hello,
Said slightly differently, a sequential file is a flat file.
"Flat file" is just slang that caught on. . . |
|
| Back to top |
|
 |
|
|