The most common cause of this error during compilation is there is no PATH to the compiler itself.
Check that the directory where your COBOL compiler files are installed, (ccbl for ACUCOBOL, cob for Micro Focus cobol, or rmcobol for RM/Cobol) is in your PATH environment variable and is accessible to FlexGen.
Other causes of this error include:
Error 0307 always occurs from an SCL script when you run a non-FlexGen program or operating system command from the SCL script, and that program fails.
The error is in response to the operating system’s error number being set by the program or job step just running. The S=xxxx portion of the error 0307 displays the value of the error number set by the failed job or program.
Investigate why the SCL job step failed. This error may be suppressed by setting
#SET V=IGNORE
in the SCL prior to the operating system command or non-FlexGen program.
The program specified in the SCL script either has not been created, or is not accessible to the COBOL runtime.
The most common cause of this error is running a program compiled with a compiler version higher than the COBOL runtime used by FlexGen.
If you have recently upgraded your COBOL runtime in UNIX or LINUX operating systems, you have to copy and rename the COBOL runtime and place it in the FlexGen installation directory. For ACUCOBOL, copy runcbl and runcbl.alc to the FlexGen installation directory and rename it runcblfg4 and runcblfg4.alc respectively. For Micro Focus Server Express, copy the rts32 cobol runtime to the FlexGen directory. For RM/Cobol copy runcobol and license.vlt to the FlexGen directory and rename it runfg4 and license.vlt. For Windows environments, check the shortcut used to run FlexGen and ensure the shortcut points to the correct COBOL runtime installation folder.
This is a problem with the FlexGen license. You have either moved the FlexGen installation to another computer, or you’ve replaced the disk drives you originally had FlexGen installed on. The site code is a unique number per system.
Report the site code displayed in the error message to your FlexGen supplier and acquire a new FlexGen license with the new site code in it.
The FlexGen license must be installed by the system administrator accessing the System Parameters item from the SYSTEM pull-down menu.
A FlexGen program is trying to display an error message that has not been defined or imported into the FlexGen error file FG4ERROR.
Investigate the program being run to determine which error codes it displays, and make sure each error message number used by the program appears in the FlexGen error file.
Use the Maintain Errors File option from the Maintain pull-down menu to create or add the missing error number and message.
Alternatively use Non-Dictionary Export from a FlexGen system that has the error defined to export it. Then use a Non-Dictionary Import on the FlexGen system reporting the 9898 error and import the error message.
Another reason for the error may be insufficient permissions on the FG4ERROR file, or a corrupt FG4ERROR file. Check permissions and/or restore the FG4ERROR file from a backup copy.
Any FlexGen error starting with 98 comes from the COBOL runtime system.
The xx portion of the error message is the COBOL error status code.
The error message also displays the COBOL operation being attempted, the name of the file the operation is impacting, and the S=xxxx portion of the error is the full COBOL Error status code.
Refer to your COBOL reference manual for specific information concerning the error code being displayed.
Book a FREE consultation Email an advisor
Cashco selects Transoft for OpenVMS application migration to Linux
Jim Moseley, VP of MIS, SP Richards & Co