Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Read two files together through Cobol

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
View previous topic :: :: View next topic  
Author Message
Pavan101

New User


Joined: 09 Mar 2009
Posts: 13
Location: Bombay

PostPosted: Tue May 12, 2009 4:50 pm    Post subject: Read two files together through Cobol
Reply with quote

Hi All,
I have to read two input files simultaneously through cobol program so plz let me know how can i do it.
icon_question.gif
Back to top
View user's profile Send private message

dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6967
Location: porcelain throne

PostPosted: Tue May 12, 2009 4:55 pm    Post subject:
Reply with quote

If you explain the process (is this a match-merge, match-delete, match-compare....)
someone can help you.

there is also a 'STICKY' in the COBOL forum about reading two files in a COBOL program
Back to top
View user's profile Send private message
Pavan101

New User


Joined: 09 Mar 2009
Posts: 13
Location: Bombay

PostPosted: Tue May 12, 2009 5:06 pm    Post subject: Reply to: Read two files together through Cobol
Reply with quote

Hi

I want to read a one input file and one temporary file which i took as a copy of output file , then i want to match records and write in to the output file
icon_smile.gif
Back to top
View user's profile Send private message
Succor

New User


Joined: 20 Feb 2009
Posts: 96
Location: Bangalore :)

PostPosted: Tue May 12, 2009 5:32 pm    Post subject: Reply to: Read two files together through Cobol
Reply with quote

Pavan101,Do you actually want to achieve this through a program, as from the description of your requirement
Quote:
one temporary file which i took as a copy of output file
it looks as if it is a one time requirement.
Are there certain fields on which you want to match the records or its one record in whole u want to compare, you can use an easytrieve ,JCL sort JOINKEYS or a buch of options which Dbz has suggested.

WTF
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 May 12, 2009 9:05 pm    Post subject:
Reply with quote

Hello Pavan and welcome to the forum,

The best way for you to get help is to post some sample records from both files and the output you want when those exact sample records are processed. You need to identify the "keys" you want to use to compare and you need to show how duplicates should be handled as well as keys that are in one file but not the other.

Once you provide proper info, someone will be able to make a more useful suggestion.
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 -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
This topic is locked: you cannot edit posts or make replies. Cobol GUI (like Editor) Kala Mainframe COBOL Programming 14 Wed May 10, 2017 12:30 pm
No new posts IMS T-Pipe queue counts in a COBOL Pr... Siva NKK Kothamasu IMS DB/DC 0 Tue May 09, 2017 6:31 pm
No new posts Unable to create multiple files using... mbattu COBOL Programming 3 Fri May 05, 2017 5:35 pm
This topic is locked: you cannot edit posts or make replies. Merge two files and update Trailer re... Yashashri JCL & VSAM 1 Thu May 04, 2017 12:54 pm
No new posts READ A PACKED "NEGATIVE" FI... jdesouza CA Products 3 Tue May 02, 2017 11:43 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us