Creating a call stub generator configuration file
You can create the call stub to identify your Rational® Application Developer installation location and to control Java™ data binding code generation
Before you begin
Create a Rational Application Developer project for the code that is generated by the COBOL call stub generator.
About this task
The call stub generator configuration file contains settings to identify your Rational Application Developer installation location and to control Java data binding code generation. The configuration file location is specified by the -configFile setting for command-line invocations or by the configFile attribute in the <csg> tag for Ant invocations.
Ensure that the EclipseHome, WorkSpace, and EclipseProjectName required settings in the configuration file are correct for your Rational Application Developer installation.
Procedure
Example
See the following sample csg.properties call stub generator configuration file:
# Configuration file for COBOLCallStubGenerator
#####
# EclipseHome specifies the installation location of Rational Application Developer.
#
EclipseHome=full_path_to_Eclipse_directory
#####
# Workspace specifies the location of the Rational Application Developer workspace.
# If it does not exist, the COBOLCallStubGenerator creates the workspace.
#
WorkSpace=full_path_to_workspace_directory
######
# EclipseProjectName specifies the project in the workspace
# that will receive the generated call stubs and bindings.
#
EclipseProjectName=Eclipse_project_name
#####
# The target operating system. The permitted options are: Win32, AIX and z/OS.
#
# PARAMETER - Required
# Platform=Win32
Platform=z/OS
#####
# The target codepage.
#
# PARAMETER - Required
CodePage=IBM1047
#####
# The floating point format has only two possible values:
# IEEE 754
# IBM Hexadecimal
# The default is IEEE 54
#
# PARAMETER - Required
FloatingPointFormat=IBM Hexadecimal
# PARAMETER - Required
ExternalDecimalSign=EBCDIC
# PARAMETER - Required
Endian=Big
# PARAMETER - Required
RemoteEndian=Little
# PARAMETER - Required
Quote=DOUBLE
# PARAMETER - Required
Trunc=STD
# PARAMETER - Required
Nsymbol=DBCS
#####
# Possible values for overwriteExistingClass are true or false.
#
# PARAMETER - Required
OverwriteExistingClass=true
#####
# Possible values for GenerationStyle are:
# Default, "Preserve case of names" or "Shorten names"
# Be sure to use quotes for values with space characters in them.
#
# PARAMETER
GenerationStyle=Default
#####
# Verbose sets the trace level to "debug".
# Values for Verbose are either true or false.
#
# PARAMETER - Optional
Verbose=false
What to do next
Run the COBOL call stub generator. You can run the call stub generator from a command line, an Ant task, or the Rational Application Developer graphical interface.
Specify the fully qualified path to the call stub generator configuration file name when running the COBOL call stub generator. For command-line invocations, use the -configFile setting to specify the file name. For Ant and graphical interface invocations, use the configFile attribute in the <csg> task to specify the file name.