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 

Matching 3 or more files using easytrieve

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


Joined: 18 Oct 2005
Posts: 4
Topics: 3

PostPosted: Tue Oct 18, 2005 1:49 pm    Post subject: Matching 3 or more files using easytrieve Reply with quote

Can somebody send me sample code showing how we can match 3 files using easytrieve ? Also can you point me to some manuals that explains how matching more than 3 files works ?
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: Tue Oct 18, 2005 2:16 pm    Post subject: Reply with quote

Quote:

Can somebody send me sample code showing how we can match 3 files using easytrieve ?

SR22,


Matching 3 files or more files in easytrieve is no different from matching 2 files. here is a sample code

Code:


FILE FILE1                       
     F1-KEY           01 001 A   
                                 
FILE FILE2                       
     F2-KEY           01 001 A   
                                 
FILE FILE3                       
     F3-KEY           01 001 A   
                                 
FILE FILE4                       
     F4-KEY           01 001 A   

JOB INPUT (FILE1 KEY (F1-KEY)    +     
           FILE2 KEY (F2-KEY)    +     
           FILE3 KEY (F3-KEY)    +     
           FILE4 KEY (F4-KEY))         
                                       
  IF MATCHED                           
     processing if all the 4 files match
  ELSE-IF FILE1 AND FILE2 AND FILE3   
      processing if file1 and file2 and file3 match
  ELSE-IF FILE2 AND FILE3 AND FILE4   
      processing if file2 and file3 and file4 match
  ELSE-IF all possible combinations you want to check
  END-IF


Quote:

Also can you point me to some manuals that explains how matching more than 3 files works ?


As for the manuals click on the quick manuals link at the top of this page and select the easytrieve section and you will find the application programming guide. It is a PDF manual , so you need adobe reader inorder to access it.

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


Joined: 18 Oct 2005
Posts: 4
Topics: 3

PostPosted: Tue Oct 18, 2005 2:23 pm    Post subject: Re: Reply with quote

Thanks Kolusu for the example
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