Dyanamically allocate a file in COBOL and write Cobol code ?



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

Dyanamically allocate a file in COBOL and write Cobol code ?

Postby pra123+ » Tue Dec 27, 2011 3:38 pm

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
pra123+
 
Posts: 4
Joined: Thu Dec 15, 2011 1:22 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Dyanamically allocate a file in COBOL and write Cobol code ?

 

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

Postby NicC » Tue Dec 27, 2011 3:53 pm

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.
The problem I have is that people can explain things quickly but I can only comprehend slowly.
Regards
Nic
NicC
Global moderator
 
Posts: 2702
Joined: Sun Jul 04, 2010 12:13 am
Location: Pushing up the daisys (almost)
Has thanked: 4 times
Been thanked: 105 times

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

Postby BillyBoyo » Tue Dec 27, 2011 4:12 pm

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.
BillyBoyo
Global moderator
 
Posts: 3804
Joined: Tue Jan 25, 2011 12:02 am
Has thanked: 22 times
Been thanked: 264 times

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

Postby Robert Sample » Tue Dec 27, 2011 6:12 pm

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.
Robert Sample
Global moderator
 
Posts: 3376
Joined: Sat Dec 19, 2009 8:32 pm
Location: Dubuque, Iowa, USA
Has thanked: 1 time
Been thanked: 224 times


Return to IBM Cobol

 


  • Related topics
    Replies
    Views
    Last post