| Author |
Message |
teevijay
New User
Joined: 20 Mar 2006 Posts: 4
|
|
|
|
How do we insert into DB2 table using a FB file as input in a JCL step.
Many thanks in advance for your help.
Regards.
Vijay |
|
| Back to top |
|
 |
References
|
Posted: Tue May 06, 2008 10:58 am Post subject: Re: how do we insert into DB2 table using a FB file as input |
 |
|
|
 |
dick scherrer
Global Moderator
Joined: 23 Nov 2006 Posts: 6033 Location: 221 B Baker St
|
|
|
|
Hello,
You "load" the data from a qsam file into the db2 table.
Following is a bit of a sample - talk with your dbs(s) or someone else on your project for the proper jcl for your system.
| Code: |
//LOADTABL EXEC PGM=DSNUTILB
. . .
//TABLDS DD DSN=your.data.set,DISP=SHR
//SYSIN DD *
LOAD DATA INDDN TABLDS
INTO TABLE EMPLOYEE
/*
|
You might also try the "Search" at the top of the page as ther are multiple topics about loading data from a file into a db2 table. |
|
| Back to top |
|
 |
|
|