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
 
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: 8666
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 MXG - Processing Compressed DB2 SMF r... vasanthz All Other Mainframe Topics 2 Thu May 10, 2018 12:47 am
No new posts Duplicate PARM on OUTFIL sancraig16 SYNCSORT 11 Thu Apr 05, 2018 10:25 pm
No new posts Extract the records with a PD field's... sudhakar84 DFSORT/ICETOOL 11 Mon Apr 02, 2018 7:26 pm
No new posts Merge 2 records sancraig16 SYNCSORT 19 Tue Mar 27, 2018 8:17 pm
No new posts Copy set of records based on condition krish.deepu SYNCSORT 2 Thu Mar 08, 2018 11:39 am

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