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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

open input failed exe/dll

Status
Not open for further replies.

kmsdove

Programmer
Dec 7, 2002
1
US
My program is a cobol executable dynamically calling another cobol program (.dll) and I am using Net Express 3.1. The called program opens a file and works with files that have records, however the program that opens a file with 0 records fails in the batch file with OPEN INPUT FAILED. Doesn't generate a file-status.

I am fairly new to NetExpress 3.1 so I don't know if I am missing something when defining the file or compiling the DLL or EXE.

I can't seem to find anything in their documentation related to executables/dlls and opening a file with 0 records.

Kathy Schneider
 
Hi Kathy,

i can't believe that :) It doesn't matter whether your code is in a .dll format or not. You say it doesn't generate a file-status. Have you declared and checked a file-status field? Is it "00" after open input? Is your "0-record-file" an empty file that really exists or have you tried to open a new file?
May be the file has not the same file format declared in your program...

Regards,
Torsten
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top