Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
How to marge two files with out using merge command?

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Mainframe Interview Questions
View previous topic :: :: View next topic  
Author Message
kvsumar

New User


Joined: 09 Mar 2008
Posts: 6
Location: bangalore

PostPosted: Tue Mar 25, 2008 12:41 pm    Post subject: How to marge two files with out using merge command?
Reply with quote

i have 2 sequential files. File1 contains old backup data and File2 contains latest backup data. I want to compare both files and move to output file3.
The above process should not use Merge command. They will be no Date, Time, Column information in File1 and File2.
Their requirement was that in File3 the latest backup data should be moved.
And How to read File1 and File2 while taking first record of File1 and comparing it to the whole records of File2?
Back to top
View user's profile Send private message

dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Tue Mar 25, 2008 7:47 pm    Post subject:
Reply with quote

Hello,

Please start over and more clearly post your question(s).

Explain why having no date, time, etc could be an issue comparing the files.

Explain what tools you are permitted to use to do what needs to be done.

Your last line should be rethought - there is almost never a good reason to compare records from one file against every record of another file.
Back to top
View user's profile Send private message
kvsumar

New User


Joined: 09 Mar 2008
Posts: 6
Location: bangalore

PostPosted: Wed Mar 26, 2008 11:47 am    Post subject: Reply to: How to marge two files with out using merge comman
Reply with quote

Hi,

My question is,

File1 contains old data and File2 contains new data. I want to compare this files and move the latest data to File3 using cobol and without using merge command.

Thanks

Kumar
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Wed Mar 26, 2008 7:19 pm    Post subject:
Reply with quote

Hello,

Near the top of the COBOL section of the forum, there is a "Sticky" about how to implement a 2-file match/merge. Download that sample code, review it, and reply back here if you have any questions.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Mainframe Interview Questions All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts FTP Skip or ignore error and process ... AJAYREDDY All Other Mainframe Topics 3 Wed Sep 27, 2017 8:12 pm
No new posts MQ command in option 6 of ISPF! Vignesh Sid All Other Mainframe Topics 3 Tue Sep 26, 2017 6:01 pm
No new posts Comparing 2 Files using Current time arunsoods SYNCSORT 9 Fri Sep 22, 2017 6:00 pm
No new posts Split 1 file into 10 output Files - S... Prasanth Kumar SYNCSORT 5 Sat Sep 16, 2017 12:02 am
No new posts How to change a string containing the... chong.zhou TSO/ISPF 6 Tue Aug 29, 2017 4:54 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us