Page 1 of 1

Dyanamically allocate a file in COBOL and write Cobol code ?

PostPosted: Tue Dec 27, 2011 3:38 pm
by pra123+
I have two table. First table contain Client_ID(Primary key ) and Second table contain Client_ID and Cycle_ID.
In Second table some clinets IDs are repeated with different cycle id .
We need in output file all repeated client Id On second table .
In this task two input files and one output file . These three files must be declare in COBOL as Dyanmic file allocation.
Could you please any one help me and write a Cobol code for this task.
For example
First file Second file
Client_ID Client_ID Cycle_ID
100 100 123
200 200 143
300 200 156
400 300 125
400 567
400 456
In out put file : We need only Client_ID like
Client_ID
200
400

Could you please any one write a Cobol code for this task and Kindly remind all these three files must be declare a Dyanmic file allocation.

Regards,
Prashanth

Re: Dyanamically allocate a file in COBOL and write Cobol co

PostPosted: Tue Dec 27, 2011 3:53 pm
by NicC
Why not read about the program that you were told about in your other topic? And search the forum for that program name so that you can find examples? Then start writing your code and testing it. If it does not work then come back with specific questions. Of course, if you cannot be bothered then I can write some code for you - but payment would be required.

Re: Dyanamically allocate a file in COBOL and write Cobol co

PostPosted: Tue Dec 27, 2011 4:12 pm
by BillyBoyo
Why don't you get the processing working with "normal" IO? Then do as NicC suggests and amend your example to do the dynamic stuff.

I assume this is an exercise.

Re: Dyanamically allocate a file in COBOL and write Cobol co

PostPosted: Tue Dec 27, 2011 6:12 pm
by Robert Sample
Could you please any one write a Cobol code for this task
This is NOT a forum help request. You are asking professionals to provide their work product, and you should expect to pay the going rate (and 1000 U.S. dollars or euros per day for coding is common, based on other responses in this forum) for such code. If you're not willing to pay for the code, then don't ask for it.

The concept of this forum is for people to get HELP, either with a code segment they are having trouble getting to run right, or with concepts they don't fully understand. Your request does not fall into either of these categories.