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

Cobol Execution Issues

Status
Not open for further replies.

SimpsonBoj

Programmer
Jun 30, 2008
1
JM
Hi,
I would really appreciate any help with the following execution issue/error I am having.

It a COBOl program that reads an input file and screen input and then outputs to several files. The program compiles and links ok, however on executing I am getting the following messages

JMP0311I-I Missing Allocation File=....PGM=..., several as the program reads through the file.

I am new to COBOL but not to programming. The program is fairly straight forward and the syntax is correct but i think I am overlooking something. The executable and input files are in the same folder.

I am using the Fujitsi Cobol compiler.

PS How do I avoid the Runtime Environment Setup Dialog box at runtime/execution time?


 
I don't know Fujitsu Cobol but most of the time you need to tell the runtime environment which files to access. It appears that Fujitsu Cobol expects an 'allocation file' which should contain that info.

Perhaps the Runtime Environment Setup dialog box is the place to tell the runtime environment which files to access?

hth.
 
Just to double-check? Is this on Windows? What version?

----------
Measurement is not management.
 
You need to 'Allocate the file ($1) if necessary, or specify the file correctly,
then re-execute.' this can be done different ways you can use assign to "filex" or a working storage ws-file-name and assign the value here or you can assign the file allocation thru the Cobol85.CBR file ws-file-name=filex.
 
Have you tried putting the full path of each of the files in your select statements.
You may need to include the path between quotes as in:
Code:
SELECT TST-FILE ASSIGN TO "C:\COBOL\PROJECT\TST-FILE.TXT".
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top