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
 

 

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: 6966
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 SORTJOIN - Copy Matched and Unmatched... Steve Ironmonger DFSORT/ICETOOL 5 Tue Jan 17, 2017 4:26 pm
No new posts Copy RECFM =VB TO FB file with RECL =... sahil41352 DFSORT/ICETOOL 3 Wed Dec 28, 2016 11:29 pm
No new posts Add PD field from 2nd file to PD in 1st Sushant Garje DFSORT/ICETOOL 6 Thu Dec 01, 2016 4:32 pm
No new posts File Aid to File Manager conversion murali3955 IBM Tools 4 Thu Nov 24, 2016 3:41 pm
No new posts How to convert the VBM file to VB or... Sulabh Agrawal JCL & VSAM 4 Fri Nov 18, 2016 1:04 pm


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