Portal | IBM Manuals | Downloads | Products | Refer | Info | Programs | JCLs | Forum Rules*| Site Map | Mainframe CD 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index
 
Register
 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index FAQ Search Memberlist Usergroups Profile Log in to check your private messages Log in
 
Load data from a flat file to db2 tables

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
Author Message
sree reddy

New User


Joined: 20 Jul 2007
Posts: 20
Location: bangalore

PostPosted: Thu Jun 26, 2008 10:20 pm    Post subject: Load data from a flat file to db2 tables
Reply with quote

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
View user's profile Send private message
References
dick scherrer

Global Moderator


Joined: 23 Nov 2006
Posts: 8731
Location: 221 B Baker St

PostPosted: Fri Jun 27, 2008 12:29 am    Post subject:
Reply with quote

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
View user's profile Send private message
debajyoti2040
Currently Banned

New User


Joined: 25 May 2007
Posts: 5
Location: Bangalore

PostPosted: Fri Jun 27, 2008 11:27 am    Post subject: Reply to: Load data from a flat file to db2 tables
Reply with quote

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
View user's profile Send private message
RAHUL_PIONEER

New User


Joined: 02 Jul 2008
Posts: 3
Location: hyderabad

PostPosted: Thu Jul 03, 2008 12:09 pm    Post subject: difference between loading from flat file & sequential f
Reply with quote

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
View user's profile Send private message
PeD

Senior Member


Joined: 26 Nov 2005
Posts: 313
Location: Belgium

PostPosted: Thu Jul 03, 2008 12:13 pm    Post subject:
Reply with quote

No difference.
"Flat file" is not a technical term.
Back to top
View user's profile Send private message
dick scherrer

Global Moderator


Joined: 23 Nov 2006
Posts: 8731
Location: 221 B Baker St

PostPosted: Thu Jul 03, 2008 7:22 pm    Post subject:
Reply with quote

Hello,

Said slightly differently, a sequential file is a flat file.

"Flat file" is just slang that caught on. . .
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2 All times are GMT + 6 Hours
Page 1 of 1