Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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 Inefficient BUILD - VB records paddin... Daniel Prosser SYNCSORT 6 Thu Dec 14, 2017 3:52 pm
No new posts ISSUE IN copying Sequential file reco... thesumitk JCL & VSAM 2 Wed Dec 13, 2017 3:07 pm
No new posts Merging 2 records at multiple rows wi... Bijesh DFSORT/ICETOOL 2 Wed Dec 06, 2017 1:50 am
No new posts Increment number for every group of r... srajendran2 DFSORT/ICETOOL 7 Thu Nov 09, 2017 10:31 pm
No new posts Matching and unmatched records!! Vignesh Sid SYNCSORT 3 Thu Nov 09, 2017 11:22 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us