Results 1 to 3 of 3

Thread: I want to move matching records from both files to file-C

  1. #1
    Geek_Guest
    Guest

    I want to move matching records from both files to file-C

    File-A and File-B have 10 records and I want to move matching records from both the files in file-C and non-matching records in file-D?
    Without sorting the both input files.
    ALL FILES ARE PS.

    Question asked by visitor Alok


  2. #2
    Junior Member
    Join Date
    Jul 2007
    Answers
    1

    Re: I want to move matching records from both files to file-C

    I am replying with simple pseudo code bellow, plz work on it.

    Read records of File-A one by one and chk it with all records of File-B.
    If it matches then write to File-C else write to File-D.


  3. #3
    Junior Member
    Join Date
    Feb 2007
    Answers
    4

    Re: I want to move matching records from both files to file-C

    Quote Originally Posted by Geek_Guest View Post
    File-A and File-B have 10 records and I want to move matching records from both the files in file-C and non-matching records in file-D?
    Without sorting the both input files.
    ALL FILES ARE PS.

    Question asked by visitor Alok
    The only way you can do this by writing the cobol program. Where the frist record in file A should be compared with rest of the record in File B. if matching found then write the record to C after writing delete the record form the both Files A and B.

    After this step is over . you are left with only unmatching records in both the files . So write them to file D.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
About us
Applying for a job can be a stressful and frustrating experience, especially for someone who has never done it before. Considering that you are competing for the position with a at least a dozen other applicants, it is imperative that you thoroughly prepare for the job interview, in order to stand a good chance of getting hired. That's where GeekInterview can help.
Interact