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 

POINT for VSAM in EZT

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


Joined: 26 Feb 2004
Posts: 4
Topics: 1

PostPosted: Thu Feb 26, 2004 2:56 pm    Post subject: POINT for VSAM in EZT Reply with quote

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
View user's profile Send private message
kolusu
Site Admin
Site Admin


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

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

Ria,

Read chapter 7 from the following link which will give you a detailed explanation and use of POINT statement along with examples.

Easytrieve Application Programming Guide

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
RIA
Beginner


Joined: 26 Feb 2004
Posts: 4
Topics: 1

PostPosted: Thu Mar 04, 2004 12:32 pm    Post subject: Reply with quote

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
View user's profile Send private message
kolusu
Site Admin
Site Admin


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

PostPosted: Thu Mar 04, 2004 12:45 pm    Post subject: Reply with quote

Ria,

You need to post more details. Easytrieve does not have option of reading a vsam file with a partial key. post a sample input data and desired output data.

You can also try the solution suggested in here

http://www.mvsforums.com/helpboards/viewtopic.php?t=1915

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
RIA
Beginner


Joined: 26 Feb 2004
Posts: 4
Topics: 1

PostPosted: Fri Mar 05, 2004 4:42 pm    Post subject: Reply with quote

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
View user's profile Send private message
vijay
Beginner


Joined: 09 May 2003
Posts: 131
Topics: 64

PostPosted: Sun Mar 07, 2004 10:49 am    Post subject: Reply with quote

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
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