View previous topic :: View next topic
|
Author |
Message |
rohanatl
New User
Joined: 21 Oct 2005 Posts: 22
|
|
|
|
Hi can any one give me a JCL which will insert a records to a db2 table.
Also plse explain the parameters need to mention in the jcl .
I want to insert to table from a flat file...
Also is it posssible to update and delete the records from the db2 table using JCL ....
Thanks |
|
Back to top |
|
|
Gnanas N
Active Member
Joined: 06 Sep 2007 Posts: 792 Location: Chennai, India
|
|
|
|
The LOAD utility is used to batch load data into DB2 tables.
Please check with your support which Load utility you have, ie, BMC Load or IBM Load utility or others.
They will give JCLs and documentation for reference.
Quote: |
Also is it posssible to update and delete the records from the db2 table using JCL .... |
JCL has nothing to to for this. You have to write an application program for the same or use DB2 batch program like IKJEFT**. |
|
Back to top |
|
|
debajyoti2040 Currently Banned New User
Joined: 25 May 2007 Posts: 4 Location: Bangalore
|
|
|
|
Hi,
You can use The Load Utility programs to do the same.
Refer DB2 for z/os utility guide and reference.
Thanks and Regards,
Debajyoti |
|
Back to top |
|
|
ssk1711
New User
Joined: 16 Jun 2008 Posts: 40 Location: bangalore
|
|
|
|
Hi Rohan,
It is possible to update and delete the records from the DB2 table.
Try the JCL below. I think it will work.
***************************************************
//JS010 EXEC PGM=IKJEFT01
//*
//SYSPUNCH DD .....................
//SYSTSPRT DD ......................
//SYSPRINT DD ......................
//SYSTSIN DD *
DSN SYSTEM(****)
RUN PROGRAM(*******) PLAN(*******) -
LIB('****.*****.******.*****')
END
//SYSIN DD *
(Give SQL queries seeparated by ';')
**************************************************** |
|
Back to top |
|
|
|