Sample code: Match/merge two files



Support for OS/VS COBOL, VS COBOL II, COBOL for OS/390 & VM and Enterprise COBOL for z/OS

Re: 2-file match/merge sample code

Postby vijaykri » Sat Feb 05, 2011 4:24 pm

Hi All I am new to the Forum .... Just now Logged

I am trying to get the code which is attached... Really i Am not sure how to get

Please let me know In detail .. I m need of program for before EOD
vijaykri
 
Posts: 2
Joined: Sat Feb 05, 2011 4:20 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Re: 2-file match/merge sample code

 

Re: 2-file match/merge sample code

Postby dick scherrer » Sun Feb 06, 2011 12:21 am

Hello,

Right-click on the text file and "SaveAs" to your pc. Then upload to the mainframe, modify for your specifics, and compile/test.
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6304
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 91 times

Re: 2-file match/merge sample code

Postby Myname » Sat Mar 19, 2011 6:23 pm

Hi ,
I need to write a cobol code that match/merge inputfile -1(will have all detailsof account except countrycode value) with inpufile-2 ( 4 char countrycode value) and produces a consolidated 3 rd file.Processing will incorporate mapping of country code from 4 char to 2char format using table ccode.input file 2 holds records for over balance accounts.these over balance acconts can be identified on the bal file by ' overbalance flag - O' means overbalance account,space means KK.KK should have the countrycode defaulted to 'gg'.
Please help me i'm a begginer.........
Thanks in advance ..

Regards,

Myname
Myname
 
Posts: 1
Joined: Sat Mar 19, 2011 5:49 pm
Has thanked: 0 time
Been thanked: 0 time

Re: 2-file match/merge sample code

Postby NicC » Sat Mar 19, 2011 8:28 pm

First - you should have started a new topic - this topic is for reference.

You say you are a beginner but you are trying to do a not-beginner's program so how much experience have you?

Have you been on a COBOL course? If you have then you take the sample code from this topic, study it, and bit by bit make the changes that you require.

If you have not studied COBOL then I would suggest you start by going on a course or get a reasonable book - 'COBOL for Dummies' is reasonable for starters - and do the exercises. When you have finished you should be competent enough to do the program changes you need to carry out the task described.

When you come up against problems at this point then ask your questions on the forum. We will not teach you COBOL but we will help you to overcome specific problems.
The problem I have is that people can explain things quickly but I can only comprehend slowly.
Regards
Nic
NicC
Global moderator
 
Posts: 2690
Joined: Sun Jul 04, 2010 12:13 am
Location: Pushing up the daisys (almost)
Has thanked: 4 times
Been thanked: 105 times

Re: 2-file match/merge sample code

Postby Chandu S » Tue Nov 15, 2011 10:09 pm

Do I need to post atleast once to view the attachments?
Chandu S
 
Posts: 2
Joined: Tue Nov 15, 2011 10:07 pm
Has thanked: 0 time
Been thanked: 0 time

Re: 2-file match/merge sample code

Postby BillyBoyo » Tue Nov 15, 2011 10:11 pm

Now you can answer the question yourself.
BillyBoyo
Global moderator
 
Posts: 3804
Joined: Tue Jan 25, 2011 12:02 am
Has thanked: 22 times
Been thanked: 264 times

Re: 2-file match/merge sample code

Postby Chandu S » Tue Nov 15, 2011 10:13 pm

The Answer is YES :)
Chandu S
 
Posts: 2
Joined: Tue Nov 15, 2011 10:07 pm
Has thanked: 0 time
Been thanked: 0 time

Re: 2-file match/merge sample code

Postby Devangee » Tue Nov 29, 2011 9:57 pm

I cnt see any file to download! : :(
Devangee
 
Posts: 2
Joined: Tue Nov 29, 2011 9:53 pm
Has thanked: 0 time
Been thanked: 0 time

Re: 2-file match/merge sample code

Postby Devangee » Tue Nov 29, 2011 10:03 pm

Now I can ;)
Devangee
 
Posts: 2
Joined: Tue Nov 29, 2011 9:53 pm
Has thanked: 0 time
Been thanked: 0 time

Re: 2-file match/merge sample code

Postby kumarajv » Wed Jan 04, 2012 3:50 pm

Hi,

This is working for sorted files only rt? but i dont have sorted files can u please tell me for unsorted files
kumarajv
 
Posts: 4
Joined: Wed Jan 04, 2012 3:41 pm
Has thanked: 0 time
Been thanked: 0 time

PreviousNext

Return to IBM Cobol

 


  • Related topics
    Replies
    Views
    Last post