The Modernization Experts

 

FlexGen - Common Issues

Error 0307 - whilst compiling a program

Likely Cause

The most common cause of this error during compilation is there is no PATH to the compiler itself.

Resolution

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 Possible Causes

Other causes of this error include:

  • You do not have file permissions necessary to overwrite the program you are compiling.
  • The directory or folder where you specify programs to be created is missing or misspelled.
  • Your compiler license has expired.
  • You have the wrong compiler and compiler support files copied into your FlexGen directory (RM/Cobol).

Error 0307 - when running an SCL script from the FlexGen menu

Likely Cause

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.

Resolution

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.


Error 0323 - "Program not found or out of memory"

Likely Cause

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.

Resolution

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.


Error 0326 - "Site code mismatch"

Likely Cause

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.

Resolution

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.


Error 9898 - "Unable to report error message"

Likely Cause

A FlexGen program is trying to display an error message that has not been defined or imported into the FlexGen error file FG4ERROR.

Resolution

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.

Other Possible Causes

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.


Error 98xx - error displays during a file operation

Likely Cause

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.

Resolution

Refer to your COBOL reference manual for specific information concerning the error code being displayed.


 

Transoft is a trading name of Transoft Group Limited and Transoft Inc, part of the CSH Group of companies. Transoft is a trade mark. CSH is a trading name of Computer Software Holdings Limited and the CSH Group of Companies © Computer Software Holdings Limited. All rights reserved. All other marks are the property of their respective owners.