COBOL Manual for TNS and TNS/R Programs
Using HP COBOL in the OSS Environment
HP COBOL Manual for TNS and TNS/R Programs—522555-006
19-4
Running HP COBOL Programs
pathname
Running HP COBOL Programs
After successfully compiling your HP COBOL program in the OSS environment, you
have a loadfile. Its name is either a.out (by default) or the name you gave it with the
-o flag. If the current directory is in your search path, you can run your program by
typing the name of the loadfile and pressing Return. For example, if the name of the
loadfile is a.out, enter:
a.out
To run the program with the selected debugger (see Debugger Selection), enter:
run -debug a.out
If the current directory is not in your search path, add it with this command:
export PATH=$PATH:.
Calling OSS Functions From HP COBOL
Programs
An HP COBOL program can call an OSS function with either the X/Open CALL
statement or the ENTER statement. The ENTER statement is easier.
Note. The file suffixes (cbl, cob, and so on) are not case-sensitive.
ns ns
ecbl
ecob
cbl
cob
.
file
o
srl
VST623.vsd
a
m