Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

JCL which will insert a records to a db2 table

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
View previous topic :: :: View next topic  
Author Message
rohanatl

New User


Joined: 21 Oct 2005
Posts: 22

PostPosted: Fri Jun 20, 2008 6:29 pm    Post subject: JCL which will insert a records to a db2 table
Reply with quote

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

Gnanas N

Active Member


Joined: 06 Sep 2007
Posts: 788
Location: Chennai, India

PostPosted: Fri Jun 20, 2008 6:40 pm    Post subject:
Reply with quote

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

New User


Joined: 25 May 2007
Posts: 4
Location: Bangalore

PostPosted: Mon Jun 23, 2008 12:14 pm    Post subject: Use LOAD Utility
Reply with quote

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

New User


Joined: 16 Jun 2008
Posts: 40
Location: bangalore

PostPosted: Mon Jun 23, 2008 1:21 pm    Post subject:
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2 All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Check if any Detail records and extra... V S Amarendra Reddy SYNCSORT 19 Mon May 08, 2017 8:54 pm
No new posts unload data from table with lob columns farhad_evan DB2 0 Sat Apr 22, 2017 1:32 pm
No new posts Data replication from multiple Db2 ta... kishpra DB2 9 Mon Mar 27, 2017 9:58 pm
No new posts Join giving more records than expected Danielle.Filteau SYNCSORT 2 Thu Mar 09, 2017 3:28 am
No new posts TSO or command line utility to genera... kishpra JCL & VSAM 3 Thu Mar 09, 2017 1:11 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us