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
 

 

Unable to update duplicate records returned from AIX

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

New User


Joined: 27 Dec 2005
Posts: 58

PostPosted: Wed Jan 16, 2008 1:33 am    Post subject: Unable to update duplicate records returned from AIX
Reply with quote

We have a code that uses a FLAT FILE as driver file and does a lookup on a VSAM file.The field used for lookup in the vsam file is defined as an AIX with duplicates.
When we move the field to VSAM we get multiple records returned.The requirement is to update all the records but it updates only 1 of them.

Cuurently the code looks like this:
READ FLAT-FILE NEXT RECORD(driver file)-->Build the Alt key from the flat file-->READ VSAM FILE-->10 records are returned-->UPDATE-->results in 1 record updation.

Now I want to do something like this:
READ FLAT FILE-->build Alt key-->START VSAM FILE KEY IS GREATER THAN ALT-KEY-->READ NEXT while the key is same
I assume this will solve my issue.Problem is tht the Alt key is a complete match.Can i stll say Greater than.
Kindly help me with this.
Back to top
View user's profile Send private message

dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Wed Jan 16, 2008 4:12 am    Post subject:
Reply with quote

Hello,

Once you have done the START/READ for the "first" record, you might use READ NEXT for the others. I believe you want the exact value for the first read, rather than "greater".
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Wed Jan 16, 2008 1:01 pm    Post subject:
Reply with quote

Does the information returned from the AIX not contain the unique key of the actual KSDS record(s) which could be used to retrive from the KSDS.
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 Unable to catalog a gdg dataset resid... Shovan JCL & VSAM 7 Fri Mar 24, 2017 2:24 pm
No new posts IMS DB-How to update a record (a sing... Nic Clouston IMS DB/DC 9 Thu Mar 09, 2017 4:38 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
No new posts Extract set of records matching on ac... bhaskar_kanteti DFSORT/ICETOOL 3 Mon Mar 06, 2017 7:19 am


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