Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

C calling COBOL program

Status
Not open for further replies.
Apr 7, 2000
25
US
I am trying to write a C program that is called by COBOL.&nbsp;&nbsp;The C program will be handeling the output for the COBOL program (our COBOL compiler can only create files that are less then 2 gig and we will need to create larger files). The problem I am having involves keeping the file pointer open between calls.&nbsp;&nbsp;I have been unable to find any documentation on this, any help would be greatly appreciated!<br><br>We are using IBM's COBOL set for AIX compiler and the C compiler that comes with AIX 4.3.2.&nbsp;&nbsp;Thanks in advance. <br><br>This is also posted in the C forum. <p>Christopher Devenny<br><a href=mailto:c_devenny@yahoo.com>c_devenny@yahoo.com</a><br><a href= > </a><br>
 
Hi,<br><br>Doesn't C have something like an append or extend option?<br>Why don't you use a COBOL compiler without this limitation?<br>Why don't you ask IBM why this limitation exists for their compiler and if they don't have a fix for it. <br><br>Perhaps C does a better job if you initially let one main-C program call your program to start the whole thing up.<br><br>Can't you just use the old DOS interupt calls to create your output?<br><br>Good luck with this and I hope you tell us about your experiences.
 
Crox -<br>Writing the C program to do the output was IBM's recommended 'fix' for this issue.&nbsp;&nbsp;I didn't get the impression they were to interested in re-writing their compiler.&nbsp;&nbsp;I will post the answer (if there is one!) when I find it.&nbsp;&nbsp;Thanks! <p>Christopher Devenny<br><a href=mailto:c_devenny@yahoo.com>c_devenny@yahoo.com</a><br><a href= > </a><br>
 
Just purchase the Server Express product from Merant<br>It will support files up to 256 TeraBytes (if your os will allow it)<br><br>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top