MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Mass Update table using a job

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Database
View previous topic :: View next topic  
Author Message
ace
Beginner


Joined: 24 Feb 2004
Posts: 58
Topics: 23

PostPosted: Tue Feb 24, 2004 3:53 pm    Post subject: Mass Update table using a job Reply with quote

Hi,
I have an input file which is having the primary key of a table,vaue-1,value2 and value-3.
Is it possible to update the table using a Job rather than writing an update program?
The file may have hundereds of records. Given below the field position and length.
Code:

Primary Key : 1,10
Value-1        : 11,8
Value-2        : 20,4
Value-3        : 25,1


Would appreciate any help on this.

Thank You
-Ace
Back to top
View user's profile Send private message
vini
Intermediate


Joined: 12 Jan 2004
Posts: 240
Topics: 48
Location: Maryland

PostPosted: Tue Feb 24, 2004 6:13 pm    Post subject: Reply with quote

You can execute the LOAD utility (in JCL) but as far as I know ..it helps as far as Inserting records or for Replacing the whole table.
It Rejects all records where it finds a Key match in the Table.
It however maybe possible to simply Update thru this util and maybe I am just not aware of it.
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12372
Topics: 75
Location: San Jose

PostPosted: Mon Mar 01, 2004 2:06 pm    Post subject: Reply with quote

Ace,

You can generate the sql statements using easytrieve or any other language with a commit after 200 sql statements and run it using DSNTEP2 or DSNTIAUL.

Another option is to unload the table and modify the desired rows using an utility and reload it back fresh. This options is feasible when you are updating atleast 50% of the rows.

Hope this helps...

Cheers

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Database All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group