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
 

 

Add rows to an existing table using load jcl.

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
BhavanaS

New User


Joined: 20 Feb 2008
Posts: 17
Location: India

PostPosted: Wed May 21, 2008 11:30 am    Post subject: Add rows to an existing table using load jcl.
Reply with quote

I need to add records to a table which already has some rows present in it.I have to do this using the load jcl. One method which I could think of is
1. Do the unload for the table first.
2.Append the new records to this unload file.
3. Delete the existing data in the table
4.Load the table using the appended unload file.

Can any one suggest a better approach where probably I can avoid the delete step?

Thanks in advance,
Back to top
View user's profile Send private message

Gnanas N

Active Member


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

PostPosted: Wed May 21, 2008 3:08 pm    Post subject:
Reply with quote

You can choose whether you want to add the new data to the existing data or replace the existing data, if the table space already contains data.
Back to top
View user's profile Send private message
BhavanaS

New User


Joined: 20 Feb 2008
Posts: 17
Location: India

PostPosted: Wed May 21, 2008 3:11 pm    Post subject: Reply to: Add rows to an existing table using load jcl.
Reply with quote

The table space already has some records and I now want to add some more records to it. In that case how will i append the table in the JCL?

Thanks in advance,
Back to top
View user's profile Send private message
Gnanas N

Active Member


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

PostPosted: Wed May 21, 2008 3:36 pm    Post subject:
Reply with quote

Which load utility you are using?

If it is BMC load plus, it avoids adding rows and keys to the table spaces and indexes if they cause duplicate keys in a unique index, so that the rows and keys do not need to be deleted later in the LOAD phase...
Back to top
View user's profile Send private message
BhavanaS

New User


Joined: 20 Feb 2008
Posts: 17
Location: India

PostPosted: Wed May 21, 2008 3:57 pm    Post subject:
Reply with quote

I am using DSNUTILB in the load jcl. Its like I have loaded the table for some employee ids and now I want to append it for remaining employee ids. So I guess there will not be an issue of duplicate keys.

Thanks,
Back to top
View user's profile Send private message
Craq Giegerich

Senior Member


Joined: 19 May 2007
Posts: 1512
Location: Virginia, USA

PostPosted: Wed May 21, 2008 5:22 pm    Post subject:
Reply with quote

Have you tried looking the DB2 Utilities manual.
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 -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Data replication from multiple Db2 ta... kishpra DB2 5 Mon Mar 27, 2017 9:58 pm
No new posts To display values of multiple rows in... vinu78 DB2 2 Thu Mar 09, 2017 1:20 pm
No new posts how to send just 10 rows in a CICS sc... Megha Gupta CICS 5 Thu Feb 23, 2017 6:57 pm
No new posts Join of more than one table dibyendumandal11111 DB2 6 Mon Feb 13, 2017 11:36 pm
No new posts Can DFSPARM override SORTKEYS paramet... ashek15 DB2 2 Tue Jan 31, 2017 11:36 pm


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