Transfer records from two files to third file..

Post your questions related to VSAM

Moderator: Moderator Group

Post Reply
paruls
Member
Posts: 8
Joined: Tue May 29, 2012 5:36 pm

Transfer records from two files to third file..

Post by paruls » Wed May 30, 2012 10:55 am

I was asked to make a program with following input :

We have three files File1 file2 and file3 , file 1 and file2 have two records,-name and roll number

few records of file1 and file2 are same.

write a program to transfer the data

of file1 and file2 to file3 ,without duplicate.

NicC
Active Member
Posts: 650
Joined: Sun Jul 24, 2011 5:27 pm
Location: Down on the pig farm

Post by NicC » Wed May 30, 2012 12:10 pm

Good! Go ahead and do it. You are supposed to be a programmer otherwise you would not have been asked. We can do it for you but to do your work for you you will have to pay us - we have to live as well, you know. Of course you could be half way there by now if you had not spent a lot of time posting useless questions. Now, go away and do your 2 file match.
Regards
Nic

DikDude
Moderator
Posts: 1001
Joined: Fri Jul 22, 2011 8:39 am
Location: usa

Post by DikDude » Wed May 30, 2012 11:55 pm

If you get stuck, post what you have tried and where you need help.

As mentioned, we will help, but will not do the work for you.

You need to create more complete "rules" for you to work from. What should happen when there are duplicate keys - which could occur in either or both files or between the files? If you know that one of the files will never contain duplicate keys, it makes the task easier.
Have a good one

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