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 program called by COBOL

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. <p>Christopher Devenny<br><a href=mailto:c_devenny@yahoo.com>c_devenny@yahoo.com</a><br><a href= > </a><br>
 
If the file pointer is in the C program, and you call the c program from another program, the file pointer is invalid on the next call because it goes out of scope as soon as the c program exits the main function. <p> <br><a href=mailto:Kim_Christensen@telus.net>Kim_Christensen@telus.net</a><br><a href= Page</a><br>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top