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 

File-matching design

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


Joined: 17 Feb 2006
Posts: 11
Topics: 3

PostPosted: Wed Jul 12, 2006 3:06 pm    Post subject: File-matching design Reply with quote

This may get lengthy but I am trying to create a cross-reference file from the contents of several similar VSAM files. The concept is pretty similar to a VSAM alternate index across multiple files.

There are six
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


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

PostPosted: Thu Jul 13, 2006 10:34 am    Post subject: Reply with quote

paul,

I had a hard time visualizing as to what you are trying to do. Why don't you post a sample of input and desired output for each case? Also if you are planning to use SORT then run the following JOB and tell us the version of the sort product. The sysout will contain the version of the sort product used

Code:

//STEP0100 EXEC PGM=SORT   
//SYSOUT DD SYSOUT=*           
//SORTIN DD *                 
test
//SORTOUT DD SYSOUT=*         
//SYSIN DD *                   
  SORT FIELDS=COPY
/*                             


Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
PaulPeplinski
Beginner


Joined: 17 Feb 2006
Posts: 11
Topics: 3

PostPosted: Fri Jul 14, 2006 1:11 pm    Post subject: Reply with quote

It is difficult to explain. Essentially I need to get fields 1-n from a series of VSAM files to create a new VSAM file to act as a cross reference. I am hesitant to provide specific details so I'll provide an analogy.

Let's say some entity stores automobile data containing make, model, year, VIN (serial number), owner, etc. in slightly different formats. In no case is owner the key or the beginning of the key. I need a cross-reference of all cars arranged by owner.

Three of them store all data for a car in a single record, albeit at a different location. This is the easy part - read a record, move fields to the new file record accordingly and write the record. Same logic, different locations. SYNCSORT FOR Z/OS 1.2.0.0R, Easytrieve or COBOL would all work.

The others store the data for a car in multiple files, say a control record for the auto and one or more detail (owner) records. In this case I'd create one cross-reference record for each owner record, but I'd have to correlate it with its control record (hence the file synchronization issue). Another option is direct reads.

Further complicating this is in some files the control and detail records have the same (partial) key, meaning I can read both files sequentially. However, in other files they are not. There is a field that ties them together so one file would need to be sorted in that order first, which eliminates VSAM direct read approach.

There are over a half-billion input records, so this can be very time-consuming.

Paul
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming 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