View previous topic :: View next topic |
Author |
Message |
RIA Beginner
Joined: 26 Feb 2004 Posts: 4 Topics: 1
|
Posted: Thu Feb 26, 2004 2:56 pm Post subject: POINT for VSAM in EZT |
|
|
If I am doing a compare between 1 to many records between 2 files and the one with many records is a VSAM file....how can I compare and merge the records together ?
How to use POINT statements in Easytrieve to get data from a VSAM file. Please help ! _________________ Thanks
RIA |
|
Back to top |
|
|
kolusu Site Admin
Joined: 26 Nov 2002 Posts: 12375 Topics: 75 Location: San Jose
|
|
Back to top |
|
|
RIA Beginner
Joined: 26 Feb 2004 Posts: 4 Topics: 1
|
Posted: Thu Mar 04, 2004 12:32 pm Post subject: |
|
|
Kolusu,
I have already used that chapter and it did not help much. I have recently started using easytrieve and I do not understand how to do the compare because only one of the two files is VSAM and more so because the keys are different.
Can you please help with some easytrieve code ? _________________ Thanks
RIA |
|
Back to top |
|
|
kolusu Site Admin
Joined: 26 Nov 2002 Posts: 12375 Topics: 75 Location: San Jose
|
|
Back to top |
|
|
RIA Beginner
Joined: 26 Feb 2004 Posts: 4 Topics: 1
|
Posted: Fri Mar 05, 2004 4:42 pm Post subject: |
|
|
Hi Kolusu,
Here is how my files look like, somewhat. Thanks for your help.
FILE 1
Code: |
FIELD1 FIELD2 FIELD3
A M XXXXX
B N YYYYY
C O ZZZZZ
|
FILE 2 VSAM FILE
Code: |
FIELD1 FIELD2 FIELD3 FIELD4 FIELD5
A M X A ABC
A M Y B DEF
B N Z C GHI
B N X A JKL
B N Y B MNO
C O X A PQR
C O X B STU
|
OUT FILE
Code: |
FIELD1 FIELD2 FIELD3 FIELD4 FIELD5 FIELD6
A M XXXXX X A ABC
A M XXXXX Y B DEF
B N YYYYY Z C GHI
B N YYYYY X A JKL
B N YYYYY Y B MNO
C O ZZZZZ X A PQR
C O ZZZZZ X B STU
|
_________________ Thanks
RIA |
|
Back to top |
|
|
vijay Beginner
Joined: 09 May 2003 Posts: 131 Topics: 64
|
Posted: Sun Mar 07, 2004 10:49 am Post subject: |
|
|
Hi Ria,
Use VSAM as the input file.Search the other file using POINT(if you know the partial key) or START (if you know the full key) or use a simple Table search if the file size is less and write the output file.
Vijay |
|
Back to top |
|
|
|
|