To split matched and unmatched records into 2 files

Ask/Clarify the questions on EASYTRIEVE

Moderators: DikDude, Moderator Group

Post Reply
User avatar
dssenthil
Member
Posts: 7
Joined: Thu Aug 14, 2008 4:01 pm
Location: Chennai

To split matched and unmatched records into 2 files

Post by dssenthil » Thu Dec 11, 2008 5:30 pm

hi,
i need easytrieve program for my requirement given below:
i have 2 input files.i need to compare the two files and
i need two output files as below :

output1: contains the matched records

output2: contains unmatched recods

Please do the needful.

User avatar
Natarajan
Moderator
Posts: 537
Joined: Fri Oct 10, 2008 12:57 pm
Location: chennai
Contact:

Post by Natarajan » Thu Dec 11, 2008 5:57 pm

Hi Senthil,

I have the answer... but please post the topic in appropriate forum.
Please post it in easytrieve forum. i will give answer there.

moderators - Please move/delete this topic from here.
Natarajan
Chennai

User avatar
Krishna
Site Admin
Posts: 1052
Joined: Fri Jan 27, 2006 7:50 am

Post by Krishna » Thu Dec 11, 2008 6:37 pm

Moved this topic to EASYTRIEVE forum.
kept the copy of this topic in ENDEAVOR forum for reference.
i will delete that copy in 2 days.

User avatar
Natarajan
Moderator
Posts: 537
Joined: Fri Oct 10, 2008 12:57 pm
Location: chennai
Contact:

EASYTRIEVE MATCHING LOGIC

Post by Natarajan » Thu Dec 11, 2008 6:43 pm

Thanks krishna.

Senthil,

Here is the job card which will do the required. I assume that you know
how to define the files in easytrieve.

Below example match the input files based on EMPNO field.

Code: Select all

  JOB INPUT (FILE1 KEY(SO-EMPNO) +                
            FILE2   KEY(AO-EMPNO) )              
                                                 
                                                 
     IF MATCHED                                  
        PUT OUTPUT1                              
     ELSE                                        
        PUT OUTPUT2                              
     END-IF                                      
Natarajan
Chennai

User avatar
dssenthil
Member
Posts: 7
Joined: Thu Aug 14, 2008 4:01 pm
Location: Chennai

Post by dssenthil » Wed Dec 17, 2008 11:25 am

Thanks a lot....

Post Reply

FREE TUTORIALS

Tutorials
Free tutorials from mainframegurukul
  • JCL Tutorial
    Covers all important JCL concepts.
  • Cobol Tutorial
    This tutorials covers all Cobol Topics from STRING to COMP-3.
  • DB2 Tutorial
    DB2 Tutorial focuses on DB2 COBOL Programming.
  • SORT Tutorial
    This Tutorial covers all important aspects of DFSORT with examples
  • CICS Tutorial
    This CICS tutorial covers CICS concepts and CICS Basics, CICS COBOL Programming.
Interview
Mainframe Interview questions



Other References
Mainframe Tools and others