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
 
Sequential Processing of Master and Trans file Logic

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

New User


Joined: 24 Oct 2006
Posts: 3

PostPosted: Tue Oct 24, 2006 2:30 am    Post subject: Sequential Processing of Master and Trans file Logic
Reply with quote

Hi,

I have a requirement. I have sequential two files.

Master file

000001 1001 KALYAN 20000
000002 1002 BBBB 5000
000003 1003 CCCC 6000
000004 1004 NNNN 7000
000005 1006 FFFFF 9000
000006 1007 TTTT 8000

Transaction File

1001 kalyan 20000
1001 kalyan 30000
1001 kalyan 20000
1002 bbbbbb 4000
1002 bbbbbb 20000
1002 bbbbbb 20000
1004 nnnnnn 20000
1004 nnnnnn 3000
1004 nnnnnn 1000
1004 nnnnnn 30000
1006 ffffff 6000
1006 ffffff 60000

Now i want to read first record from Master file (i.e. 000001) and verify with trans and retrieve all the matching records(i.e. 000001). Then the second record from Master file (i.e. 000002) and verify it with trans file (000002) and get related records and so on ..........

Note: When i try to fetch third match(000003) in trans file, I should not read the previous records(i.e. 000001,000002) in Trans file.


Can anyone explain me ?
Back to top
View user's profile Send private message

dbzTHEdinosauer

Global Moderator


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

PostPosted: Tue Oct 24, 2006 6:12 am    Post subject:
Reply with quote

mmwife provided an excellent program example of this logic at http://www.ibmmainframes.com/viewtopic.php?t=14892&sid=d10dc5959d81412f94600b7ba0c5190d
Back to top
View user's profile Send private message
mmwife

Super Moderator


Joined: 30 May 2003
Posts: 1592

PostPosted: Tue Oct 24, 2006 9:50 pm    Post subject:
Reply with quote

Hi Dick,

Thanx for the "attaboy". Unfortunately, it's only 1/2 the ans.

The other 1/2 uses the control break algorithm. It's unusual to see them
both in the same pgm.

On 2nd thought, the control break logic for this one is trivial. Unless he has to report transaction activity.
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
No new posts Execute JCL step based on the content... sprikitik JCL & VSAM 2 Tue Oct 03, 2017 10:03 am
This topic is locked: you cannot edit posts or make replies. PS file data should be passed as symb... d_sarlie JCL & VSAM 15 Tue Oct 03, 2017 5:18 am
No new posts Garbage on output file Hervey Martinez SYNCSORT 4 Wed Sep 27, 2017 12:50 am
No new posts File Aid tool to compare numeric data balaji81_k Compuware & Other Tools 2 Tue Sep 26, 2017 3:35 am
No new posts Compare yesterday's date to the one o... migusd SYNCSORT 11 Fri Sep 22, 2017 11:35 pm

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