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
 

 

Delete the common record from the 4 files with priority

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

New User


Joined: 25 Sep 2007
Posts: 2
Location: Gurgaon

PostPosted: Wed Sep 26, 2007 9:52 am    Post subject: Delete the common record from the 4 files with priority
Reply with quote

I have 4 files lets A,B,C,D with each has priority.Lets A has highest priority and other follow in same manner.

If A and B has common records then i have to A's records not the B's records.same with other files.

I cant take 2-2 files and delete the common records. In one program i have to do.
Finally i need the all the distinct records from all the files.
Back to top
View user's profile Send private message

murmohk1

Senior Member


Joined: 29 Jun 2006
Posts: 1439
Location: Bangalore,India

PostPosted: Wed Sep 26, 2007 10:22 am    Post subject:
Reply with quote

Mukesh,

Quote:
If A and B has common records then i have to A's records not the B's records.same with other files.


After comparing A & B, will go with B & C. Later C & D and D & A. Is it like this or do you have some other process. For better understanding please explain the full requirement (taking all 4 files into consideration).

Do you want to do this in COBOL only?
Back to top
View user's profile Send private message
mukeshalwa

New User


Joined: 25 Sep 2007
Posts: 2
Location: Gurgaon

PostPosted: Wed Sep 26, 2007 10:51 am    Post subject: Reply to: Delete the common record from the 4 files with pri
Reply with quote

Ya it will go for B & C and then C & D not with D & A. when all process done it will read A file and then process..
Base record will start from A.
Suppose A has record 3,4,5,8,9
B has 2,3,4,7,10
C - 1,2,3,8,9
D - 0,1,3..

Then it reads 3 from A and check the records in B.
If B has lower record than A write B records also in file and if its common then dont write..
After that go for B & C if C has lower record than B then write it else go for C & D.
If D has lower record than C then write it else go for B & C for next step.

And I need this in COBOL only.
Hope i am clear this time :-)
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 Record Not found in AlX but record re... mukun264 COBOL Programming 7 Fri Mar 24, 2017 9:28 am
No new posts Count the length of the record & ... sreekusr DFSORT/ICETOOL 4 Thu Mar 23, 2017 7:52 pm
No new posts Append data from two files into a sin... Praveen04 DFSORT/ICETOOL 5 Thu Mar 16, 2017 7:29 pm
No new posts IMS DB-How to update a record (a sing... Nic Clouston IMS DB/DC 9 Thu Mar 09, 2017 4:38 pm
No new posts To Merge mutliple records into a sing... anandgbe DFSORT/ICETOOL 6 Wed Feb 22, 2017 8:49 am


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