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 Insert a Row_number into table useit DB2 2 Tue Sep 19, 2017 1:07 pm
No new posts how to see when the last read access ... Mike 1304 DB2 1 Tue Sep 12, 2017 7:52 pm
No new posts PC (UTF-8) -> z/OS (EBCDIC) -> ... prino All Other Mainframe Topics 4 Fri Sep 01, 2017 1:47 am
No new posts Join records from 2 files with No Dup... Poha Eater DFSORT/ICETOOL 21 Sun Aug 27, 2017 10:35 pm
No new posts Adding a userid to SMTP Security table Yolanda Harvey JCL & VSAM 1 Sun Aug 13, 2017 6:16 pm

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