Package com.softwaremining
Class Config
java.lang.Object
com.softwaremining.Config
Project-wide configuration facility, which uses property file
softwaremining.properties placed somewhere within CLASSPATH.
See distributed softwaremining.properties for additional comments.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic int
static boolean
static String
Character encoding for applications (mainly used in construction of Strings).static int
Only used in BMS Applications
Standard Output fields are : L (s9(2)Comp) , A (X), and O (User-defined) when the BMS had EXTATT or MAPATT, potentially 4 extra fields will go in there: C (X1) , P (X1) , H (X) , V (X1),static int
static boolean
Used in Formatting the object ..static boolean
Allows caching of non arrayed values on GET-OBJECT Caching can result in significant performance improvement through switching off some COBOL formatting and functionality features.static String
static char
static boolean
used for COMP-4static String
static String
provides ability to override the connectionFactorystatic boolean
static String
Override default CR-LF used by the Operating-System (OS) Options are: OS (default) uses Operating-System specified value WINDOWS uses CR-LF UNIX uses CRstatic String
for importing data-files from Comma-separated-values format.static String
for internal use only
use Config.setCurrencySign to change currency from $static char
for internal use only
use Config.setCurrencySign to change currency from $static String
for internal use onlystatic String
static String
DATA_DIRECTORY for read / write of sequential/Indexed/Relative files The value can be set from softwaremining.properties / DATA_DIRstatic String
Character encoding for import of dataFiles (Used in FileLoaderService)
one of "UTF8" , "UTF16" , "ISO-8859-1" , "US-ASCII" , or "IBM-1047" (EBCDIC)
Defaults to APP_CHARACTER_ENCODING if no value providedstatic boolean
Allows running java in default character-set (as assigned on the machine - usually set to -8859-1 ) but reading and writing EBCDIC data files for compatibility with original mainframe.static String
Character encoding used in Database access - for translation of VSAM to ORM, and EXEC SQL Statements.static String
static String
static boolean
if set to true, opening DB400 Sequential Files causes all records to be deleted from that particular table..static char
static boolean
the following are to do with DECIMAL POINT IS COMMA
Note: On development machines which have not been configured to target locale, java can be started as:static String
static boolean
By-passes saving altered Indexed-Filesstatic boolean
Display's PF Key as BUTTONS on the html screen - this is used in CICSstatic boolean
suppress keys 13-26static boolean
For CICS BMS screens, RequestEntry class should use disabled=true
other platforms will require different approach .
A false value will also automatically call clearDisplay before showing new screens (required for Conversational Servlets)static final int
For Internal use only
DISPLAY_TARGET option
Applicable when the application is run from command line, DISPLAY statements / DislayHelper.display(...) will be written out using Logger (configure to write to File).static int
DISPLAY_TARGET option
Applicable when the application is run from command line, DislayHelper.display(...) will be written out using Logger (configure to write to File).static int
For Internal use only
DISPLAY_TARGET option
Applicable when the application is run from command line, DISPLAY statements / DislayHelper.display(...) is sent to "SCREEN" only with fully formatted information (line/column numbers)
and File out using Logger (configure to write to File).static final int
For Internal use only
DISPLAY_TARGET option
DISPLAY statements / DislayHelper.display(...) will be written out as a System.out.printlnstatic int
translation of DISPLAY "HELLO WORLD" ...static boolean
static final int
EBCDIC uses hex 15 according to https://www.ibm.com/support/knowledgecenter/en/SSMKHH_9.0.0/com.ibm.etools.mft.doc/ac11630_.htmstatic String
static String
Program names retrieveed from services.properties (through serviesFactory) will first look at package-names provided by EXTERNAL_SERVICES_PACKAGE_NAME (if any) before using the default application packagestatic final char
static final String
static boolean
Variable records have to be LINE-SEQUENTIAL (use NewLine as delimitor)
fixedLengthRecords are usually RECORD-SEQUENTIAL.static String
static String
static final boolean
For SoftwareMining internal use onlystatic final boolean
static final int
static final String
static String
static boolean
Affects log.error(exception) method.static int
static int
static final boolean
static boolean
static int
static boolean
static long
static boolean
static long
static int
static String
static boolean
(1,6,PD ...) can represents Number of 6 Bytes or or 6 Digitsstatic final boolean
Deprecated.static long
Deprecated.static final boolean
Deprecated.static String
static boolean
JSPScreen.renderXXX will produce elements such as <input name="abc" value=...>
Enabling this flag will also add id attribute e.g.static final String
For internal use onlystatic Locale
static final int
Represents JRE14 loggingstatic final int
Represents log4j loggingstatic int
static int
static int
Object Relational Array Index Base.static String
Object Relational column name for ARRAYS.static boolean
Object Relational column name for ARRAYS.static boolean
Used in Data population (PopulateDbTableFromSequentialFile) - Reuses the INSERT prepared-statementstatic final boolean
static boolean
static String
Character encoding used on Mainframe.static int
Used in CBLPointer constructor.static String
Used in CBLPointer constructor.static int
static boolean
when writing a sequential report file (e.g.static String
print files will be placed in this directory, A separate script needs to be scanning this directory, and send the "unlocked" files to printer and then to delete the file.static boolean
for switching on built-in profilerstatic int
The value returned when the numeric field (e.g.static boolean
SAFE_MODE is used in Build and TESTING stage - it runs slower - but do additional runtime checks to help in deployment.static String
SEQUENTIAL_FILE_EXTENSION defaults to ".txt"static boolean
For Sequential NIO Files.static boolean
Sequential files can be Record-SEQUENTIAL or LINE-SEQUENTIAL
Variable records are LINE-SEQUENTIAL
fixed Length Records are RECORD SEQUENTIAL (all records concatenated together to form one long line)
Default = true (Variable length)static String
static String
static String
static String
static final String
static String
static boolean
TO REMOVEstatic boolean
Defines the default format for jcl.sort output files.static boolean
static boolean
===== WARNING ====: Please note, DO NOT use when sorting Numeric VALUES In Ebcdic sorting, "A" goes before "a", and numbers go after alphabetic In Ascii / Unicode - it is the reverse .static byte
static char
static String
SQL_DIR for reading externalized SQL scripts SQL_DIR defaults to /sql The value can be set from softwaremining.properties / DATA_DIRstatic boolean
By default - translation of STOP statement will cause a System.exit(returnCode).static final boolean
static final boolean
static boolean
static boolean
for performance tuningstatic boolean
static String
static boolean
static boolean
RDW is Used in Variable length-Record Sequential files.static boolean
A signed overpunch is a code used to store the sign of a number by changing the last digit.static boolean
Only used for data-migration or working with EBCDIC files.static boolean
static boolean
when set to true - the system will try to find JSP screens instead of XSL Transformation of XML to HTML files.static boolean
All COBOL platforms uses the different storage type (byte or word) particularly, the FUJITSU / Stratus uses word storage
(see https://srinimf.com/2016/06/24/stratus-cobol-or-vos-cobol-comp-4-vs-comp-5-and-comp-6/) The wordStorage parameter used for NumericFormatBinary (COMP format) As example - the wordStorage parameter is true for FUJITSU COBOL wordStorage=true standard COBOL -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic String
static NumberFormat
getEnvironmentVariable
(String enviromentVariableName) get Environment variable from machine configurationstatic int
static String
information picked up from softwaremining.config PRINT_DIR Defaults to dataDirectorystatic Properties
for internal use - get the application property file corect.propertisstatic String
static boolean
static void
for internal use - read and applies configuration values from property filestatic void
loadProperties
(String propertyFileName) for internal use - read and applies configuration values from property filestatic void
static void
setCurrencySign
(char currencySign) static void
setDataDirectory
(String newDataDirectory) static void
setDecimalIsComma
(boolean useComma) static void
static void
setSequentialFileExtention
(String newExtention) Allows overriding SEQUENTIAL_FILE_EXTENSION which defaults to ".txt" at run timestatic String
static void
useEbcdicDataFiles
(boolean newValue) for interal use only
-
Field Details
-
SM_FRAMEWORK_VERSION
- See Also:
-
SM_FRAMEWORK_CICS_VERSION
-
SM_FRAMEWORK_ILE_VERSION
-
SM_FRAMEWORK_VENDOR_SUPPORT_VERSION
-
SM_FRAMEWORK_VENDOR2_SUPPORT_VERSION
-
SM_JCL_XT_VERSION
-
PROFILE_RUNTIME
public static volatile boolean PROFILE_RUNTIMEfor switching on built-in profiler -
TRANSFUSE_BY_REFERENCE
public static volatile boolean TRANSFUSE_BY_REFERENCEfor performance tuning -
FULL_COMPILATION
public static final boolean FULL_COMPILATIONFor SoftwareMining internal use only- See Also:
-
FULL_COMPILE_INT_RETURN
public static final int FULL_COMPILE_INT_RETURN- See Also:
-
FULL_COMPILE_STRING_RETURN
-
FULL_COMPILE_BOOLEAN_RETURN
public static final boolean FULL_COMPILE_BOOLEAN_RETURN- See Also:
-
APP_CHARACTER_ENCODING
Character encoding for applications (mainly used in construction of Strings).
one of "UTF8" , "UTF16" , "ISO-8859-1" , "US-ASCII" , "IBM-1047" (EBCDIC) or "8859_1" (another EBCDIC ?)
Defaults to "ISO-8859-1" -
DB_CHARACTER_ENCODING
Character encoding used in Database access - for translation of VSAM to ORM, and EXEC SQL Statements.
one of "UTF8" , "UTF16" , "ISO-8859-1" , "US-ASCII" , "IBM-1047" (EBCDIC) or "8859_1" (another EBCDIC ?)
Defaults to APP_CHARACTER_ENCODING if no value provided -
DATAFILE_CHARACTER_ENCODING
Character encoding for import of dataFiles (Used in FileLoaderService)
one of "UTF8" , "UTF16" , "ISO-8859-1" , "US-ASCII" , or "IBM-1047" (EBCDIC)
Defaults to APP_CHARACTER_ENCODING if no value provided -
ORIG_EBCDIC_CHARACTER_ENCODING
Character encoding used on Mainframe.
this is only used for EBCDIC to ASCII conversion (if any), and whenUSE_SM_EBCDIC_DECODER=false
-
DATAFILES_ARE_EBCDIC
public static volatile boolean DATAFILES_ARE_EBCDICAllows running java in default character-set (as assigned on the machine - usually set to -8859-1 ) but reading and writing EBCDIC data files for compatibility with original mainframe.
defaults to false -
USE_SM_EBCDIC_DECODER
public static volatile boolean USE_SM_EBCDIC_DECODEROnly used for data-migration or working with EBCDIC files.
When set - The system will use SoftwareMining's built-in utilities for conversion from EBCDIC to ASCI and back.
Otherwise, it will use JAVA's string encoding/decoding
When false (ie using java's character encodings) the following parameters need to be set:
APP_CHARACTER_ENCODING (typically set to default "ISO-8859-1")
DATAFILE_CHARACTER_ENCODING (Set to "IBM-1047" for Ebcdic data files). When switched off, it will use SoftwareMining's inbuilt conversion. -
CP500_EBCDIC_CHAR_ENCODING
public static volatile boolean CP500_EBCDIC_CHAR_ENCODING -
EBCDIC_JIT_PD_SUPPORT_FOR_SEQ_FILES
public static volatile boolean EBCDIC_JIT_PD_SUPPORT_FOR_SEQ_FILES -
LM_CHARACTER_ENCODING
For internal use only- See Also:
-
SAFE_MODE
public static volatile boolean SAFE_MODESAFE_MODE is used in Build and TESTING stage - it runs slower - but do additional runtime checks to help in deployment. Once the system is tested SAFE_MODE can be set to false. This will disable additional checks and improve the performance of system. -
DEMO_MODE
public static volatile boolean DEMO_MODEBy-passes saving altered Indexed-Files -
COMP4_MAPS_TO_BINARY
public static volatile boolean COMP4_MAPS_TO_BINARYused for COMP-4 -
INCLUDE_ALL_SM_ERRS_ON_STACKTRACE
public static volatile boolean INCLUDE_ALL_SM_ERRS_ON_STACKTRACEAffects log.error(exception) method. By default the system will not include the libraries API calls in the stack-trace. Switching this off will show additional information relating to SM framework API in the stack-traces. -
ONE_DIM_ARRAY_EXTENTION
public static volatile int ONE_DIM_ARRAY_EXTENTION -
LOG_SYSTEM_JRE14
public static final int LOG_SYSTEM_JRE14Represents JRE14 logging- See Also:
-
LOG_SYSTEM_LOG4J
public static final int LOG_SYSTEM_LOG4JRepresents log4j logging- See Also:
-
CACHE_VALUES
public static volatile boolean CACHE_VALUESAllows caching of non arrayed values on GET-OBJECT Caching can result in significant performance improvement through switching off some COBOL formatting and functionality features. such as ON-Size-Error.
Applies to String and Integer data-types/fields will get cached on SET. This parameter does not affect Double fields.
Setting this value to true increases performance - but relies on accuracy of java double calculations, rather than the framework - which duplicates COBOL accuracy.
For example , take field with definition PIC s9(2)V99 setting value of 7.19999 in COBOL will round to 7.2 But in java will remain as 7.19 .
setting the value to false will cache on GET operations .. ie the framework will take care of correcting the SET'ed value . -
CACHE_FORMATTED_VALUES
public static boolean CACHE_FORMATTED_VALUESUsed in Formatting the object ..
for example formatting the number "2" for pic X(10) COMP. is very expensive. Once formatted, the value can be cached in a WeakHashMap -
OR_ARRAY_INDEX_BASE
public static volatile int OR_ARRAY_INDEX_BASEObject Relational Array Index Base. Java arrays are 0 based, COBOL arrays are 1 based. When splitting Tables containing ARRAYS, this flag indicates whether to save as 0 based or 1 based arrays. Default is Config.ZERO_CHAR based arrays, however, systems such as DATABRIDGE will save as 1 based arrays. -
POLL_INDEFINITELY
public static volatile int POLL_INDEFINITELY -
INDEX_FILE__WRITE_TRIES
public static volatile int INDEX_FILE__WRITE_TRIES -
INDEX_FILE__WRITE_TRY_DELAY
public static volatile int INDEX_FILE__WRITE_TRY_DELAY -
OR_ARRAY_INDEX_PREFIX
Object Relational column name for ARRAYS. (Only used in sub-classes of SQLWrapper). When splitting Tables containing ARRAYS, the system can generate 2ndry tables. One column will be assigned to the index. This parameter represents the name of the index. Default is 'INDX_FLD_' , however, systems such as DATABRIDGE use different naming systems - such as "index". -
OR_DATABRIDGE_DESIGN
public static final boolean OR_DATABRIDGE_DESIGN- See Also:
-
OR_ARRAY_INDEX_PREFIX_WITH_CLASSNAME
public static volatile boolean OR_ARRAY_INDEX_PREFIX_WITH_CLASSNAMEObject Relational column name for ARRAYS. (Only used in sub-classes of SQLWrapper) When splitting Tables containing ARRAYS, or when dealing with Hierarchical database (Master-Detail) This parameter tells the system whether to prefix the index name with the table name, e.g. weather to produce 'INDX_FLD_' or 'TABLE1_INDX_FLD_' -
OR_CACHE_PREPARED_STATEMENTS
public static volatile boolean OR_CACHE_PREPARED_STATEMENTSUsed in Data population (PopulateDbTableFromSequentialFile) - Reuses the INSERT prepared-statement -
OR_GENERATE_ORDERBY_FOR_READ
public static volatile boolean OR_GENERATE_ORDERBY_FOR_READ -
SORT_USING_EBCDIC_CHARSET
public static volatile boolean SORT_USING_EBCDIC_CHARSET===== WARNING ====: Please note, DO NOT use when sorting Numeric VALUES In Ebcdic sorting, "A" goes before "a", and numbers go after alphabetic In Ascii / Unicode - it is the reverse . e.g.EBCDIC : A B C ... a b c ... 123 ASCII : 123 ... a b c ... A B C
-
SORT_DEFAULT_OUTPUT_FORMAT_IS_LINE_SEQUENTIAL
public static volatile boolean SORT_DEFAULT_OUTPUT_FORMAT_IS_LINE_SEQUENTIALDefines the default format for jcl.sort output files. -
SORT_COMPS_USING_NUMERIC_VALUE
public static volatile boolean SORT_COMPS_USING_NUMERIC_VALUETO REMOVE -
JCL_SORT_MEM_STRATEGY_CACHE_RECORDS
Deprecated.- See Also:
-
JCL_USE_KEY_SORT_MEMORY_STRATEGY
Deprecated.- See Also:
-
JCL_SORT_MEM_STRATEGY_MIN_FILE_SIZE_MB
Deprecated. -
JCL_MEMORY_FILE_SORT_ENABLED
public static volatile boolean JCL_MEMORY_FILE_SORT_ENABLED -
JCL_MEMORY_FILE_LARGEST_FILE
public static volatile int JCL_MEMORY_FILE_LARGEST_FILE -
JCL_MERGE_SORT_ENABLED
public static volatile boolean JCL_MERGE_SORT_ENABLED -
JCL_MERGE_SORT_MAX_FILE_SIZE_MB
public static volatile long JCL_MERGE_SORT_MAX_FILE_SIZE_MB -
JCL_MERGE_SORT_MAX_NUMBER_OF_FILES
public static volatile int JCL_MERGE_SORT_MAX_NUMBER_OF_FILES -
JCL_MERGE_SORT_BREAK_FILES_CHUNKS
public static volatile long JCL_MERGE_SORT_BREAK_FILES_CHUNKS -
JCL_MERGE_SORT_TMP_DIR
-
CSV_DELIMITOR
for importing data-files from Comma-separated-values format. -
SEQUENTIAL_FILE_EXTENSION
SEQUENTIAL_FILE_EXTENSION defaults to ".txt" -
SEQUENTIAL_NIO_FILE_ARE_MULTIBYTE
public static volatile boolean SEQUENTIAL_NIO_FILE_ARE_MULTIBYTEFor Sequential NIO Files. Supports read of files with Multi-byte char sets (e.g. UTF-8). Default is false. -
USE_PERFORMANT_BUFFERED_SEQUENTIALFILES
public static volatile boolean USE_PERFORMANT_BUFFERED_SEQUENTIALFILES -
BUFFERED_SEQUENTIALFILE_BUFFER_SIZE
public static volatile int BUFFERED_SEQUENTIALFILE_BUFFER_SIZE -
EXTERNAL_SERVICES_PACKAGE_NAME
Program names retrieveed from services.properties (through serviesFactory) will first look at package-names provided by EXTERNAL_SERVICES_PACKAGE_NAME (if any) before using the default application package -
locale
-
CONNECTION_FACTORY_IMPL
provides ability to override the connectionFactory -
RETURN_VALUE_FOR_NUMERIC_FIELD_WITH_INVALID_CONTENT
public static volatile int RETURN_VALUE_FOR_NUMERIC_FIELD_WITH_INVALID_CONTENTThe value returned when the numeric field (e.g. 9(4)) contains invalid content such as spaces. The return value of 0 has been validated against variety of COBOL Compilers - including Fujitsu COBOL -
WORD_STORAGE
public static volatile boolean WORD_STORAGEAll COBOL platforms uses the different storage type (byte or word) particularly, the FUJITSU / Stratus uses word storage
(see https://srinimf.com/2016/06/24/stratus-cobol-or-vos-cobol-comp-4-vs-comp-5-and-comp-6/) The wordStorage parameter used for NumericFormatBinary (COMP format) As example - the wordStorage parameter is true for FUJITSU COBOL wordStorage=true standard COBOL -
ALLOW_TRACE_OF_PRIVATE_DATA
public static volatile boolean ALLOW_TRACE_OF_PRIVATE_DATA -
TREAT_SPACE_AS_LOWVAL_WHEN_TESTING_FOR_BLANKS
public static volatile boolean TREAT_SPACE_AS_LOWVAL_WHEN_TESTING_FOR_BLANKS -
USE_SIGNED_OVERPUNCH_IN_NUMERICDISPLAY
public static volatile boolean USE_SIGNED_OVERPUNCH_IN_NUMERICDISPLAYA signed overpunch is a code used to store the sign of a number by changing the last digit. It is used in "storage" representation of NUMERIC-DISPLAY formats.
For example, assigning the number 6 to a field defined with PICTURE "S9" will be internally represented by:- "6" when USE_SIGNED_OVERPUNCH_IN_NUMERICDISPLAY=false
- "F" when USE_SIGNED_OVERPUNCH_IN_NUMERICDISPLAY=true
-
CONFIG_RESOURCE
-
SORT_SUMS_ARE_SIGNED_OVERPUNCH_IN_NUMERICDISPLAY
public static volatile boolean SORT_SUMS_ARE_SIGNED_OVERPUNCH_IN_NUMERICDISPLAY -
BMS_EXTENDED_ATTR_LENGTH
public static volatile int BMS_EXTENDED_ATTR_LENGTHOnly used in BMS Applications
Standard Output fields are : L (s9(2)Comp) , A (X), and O (User-defined) when the BMS had EXTATT or MAPATT, potentially 4 extra fields will go in there: C (X1) , P (X1) , H (X) , V (X1), -
DISPLAY_TARGET_IS_SCREEN_AND_LOGFILE
public static volatile int DISPLAY_TARGET_IS_SCREEN_AND_LOGFILEFor Internal use only
DISPLAY_TARGET option
Applicable when the application is run from command line, DISPLAY statements / DislayHelper.display(...) is sent to "SCREEN" only with fully formatted information (line/column numbers)
and File out using Logger (configure to write to File). -
DISPLAY_TARGET_IS_SCREEN
public static volatile int DISPLAY_TARGET_IS_SCREENDISPLAY_TARGET option
Applicable when the application is run from command line, DislayHelper.display(...) will be written out using Logger (configure to write to File). the DISPLAY statements / DislayHelper.display(...) is sent to "SCREEN" only with fully formatted information (line/column numbers) -
DISPLAY_TARGET_IS_FILE
public static final int DISPLAY_TARGET_IS_FILEFor Internal use only
DISPLAY_TARGET option
Applicable when the application is run from command line, DISPLAY statements / DislayHelper.display(...) will be written out using Logger (configure to write to File).- See Also:
-
DISPLAY_TARGET_UNFORMATTED
public static final int DISPLAY_TARGET_UNFORMATTEDFor Internal use only
DISPLAY_TARGET option
DISPLAY statements / DislayHelper.display(...) will be written out as a System.out.println- See Also:
-
displayTarget
public static volatile int displayTargettranslation of DISPLAY "HELLO WORLD" ... which shows information on terminal/console
Values are set from softwaremining.properties
DISPLAY_TARGET=xxxx
xxxx Options are:
UNFORMATTED : Uses System.out.println (Default)
SCREEN : Formatted output - only works if material is output from a single program (if CALL ANOTHER-PROGRFAM, display statements won't work)
FILE : uses log4j to write out the DISPLAY (can be directed to CONSOLE and FILE),
BOTH : Writes to both SCREEN and FILE -
DISPLAY_REQUEST_ENTRY_MODE__DISABLED
public static volatile boolean DISPLAY_REQUEST_ENTRY_MODE__DISABLEDFor CICS BMS screens, RequestEntry class should use disabled=true
other platforms will require different approach .
A false value will also automatically call clearDisplay before showing new screens (required for Conversational Servlets) -
JSP_FOLDER
-
VIEW_MODE_IS_JSP
public static volatile boolean VIEW_MODE_IS_JSPwhen set to true - the system will try to find JSP screens instead of XSL Transformation of XML to HTML files. -
JSP_GENERATE_ID_ATTRIBUTE
public static volatile boolean JSP_GENERATE_ID_ATTRIBUTEJSPScreen.renderXXX will produce elements such as <input name="abc" value=...>
Enabling this flag will also add id attribute e.g. <input name="abc" id="abc" value=...> -
CR_LF
Override default CR-LF used by the Operating-System (OS) Options are: OS (default) uses Operating-System specified value WINDOWS uses CR-LF UNIX uses CR -
EBCDIC_NEWLINE
public static final int EBCDIC_NEWLINEEBCDIC uses hex 15 according to https://www.ibm.com/support/knowledgecenter/en/SSMKHH_9.0.0/com.ibm.etools.mft.doc/ac11630_.htm- See Also:
-
STOP_TRIGGERS_SYSTEM_EXIT
public static volatile boolean STOP_TRIGGERS_SYSTEM_EXITBy default - translation of STOP statement will cause a System.exit(returnCode). Setting this flag to "false" will cause program to stop but not call System.exit - which allows other programs in JVM to continue running -
JCL_PD_SIZE_REPRESENT_NUMBER_OF_BYTES
public static volatile boolean JCL_PD_SIZE_REPRESENT_NUMBER_OF_BYTES(1,6,PD ...) can represents Number of 6 Bytes or or 6 Digits -
dataDirectory
DATA_DIRECTORY for read / write of sequential/Indexed/Relative files The value can be set from softwaremining.properties / DATA_DIR -
printDirectory
print files will be placed in this directory, A separate script needs to be scanning this directory, and send the "unlocked" files to printer and then to delete the file. Used primarily by CICS Spool statement -
sqlDirectory
SQL_DIR for reading externalized SQL scripts SQL_DIR defaults to /sql The value can be set from softwaremining.properties / DATA_DIR -
SEQUENTIAL_RECORDS_ARE_VARIABLE_LENGTH
public static volatile boolean SEQUENTIAL_RECORDS_ARE_VARIABLE_LENGTHSequential files can be Record-SEQUENTIAL or LINE-SEQUENTIAL
Variable records are LINE-SEQUENTIAL
fixed Length Records are RECORD SEQUENTIAL (all records concatenated together to form one long line)
Default = true (Variable length) -
FIXED_LENGTH_RECORDS_END_WITH_NEWLINE
public static volatile boolean FIXED_LENGTH_RECORDS_END_WITH_NEWLINEVariable records have to be LINE-SEQUENTIAL (use NewLine as delimitor)
fixedLengthRecords are usually RECORD-SEQUENTIAL. (records concatenated at end of each other) This parameter can be used to also write put new-line character at end of each record in fixed-length-records files. -
USE_RDW_FOR_SEQUENTIAL_VARIABLE_LENGHT_FILES
public static volatile boolean USE_RDW_FOR_SEQUENTIAL_VARIABLE_LENGHT_FILESRDW is Used in Variable length-Record Sequential files. (The length is variable due to OCCURS-DEPENDING-ON clause.)
The system will use 4 byte RDW at start of each record to note the record-length. -
PREFIX_NAME_OF_SEQUENTIAL_FILES_WITH_CALLING_PROGRAM
public static volatile boolean PREFIX_NAME_OF_SEQUENTIAL_FILES_WITH_CALLING_PROGRAMwhen writing a sequential report file (e.g. Report.txt), the system can append the name of the caller to the report (e.g. InvoiceProgram_Report.txt) -
DB400SEQUENIAL_DELETE_RECORDS_WHEN_OPEN_FOR_OUTPUT
public static volatile boolean DB400SEQUENIAL_DELETE_RECORDS_WHEN_OPEN_FOR_OUTPUTif set to true, opening DB400 Sequential Files causes all records to be deleted from that particular table.. -
DISPLAY_PF_KEYS_BUTTONS
public static volatile boolean DISPLAY_PF_KEYS_BUTTONSDisplay's PF Key as BUTTONS on the html screen - this is used in CICS -
DISPLAY_PF13_TO_PF24
public static volatile boolean DISPLAY_PF13_TO_PF24suppress keys 13-26 -
HTML_PAGE_TIMEOUT
-
USE_XML_FOR_DEBUG_LOG_LEVEL
public static volatile boolean USE_XML_FOR_DEBUG_LOG_LEVEL -
DECIMAL_POINT_IS_COMMA
public static volatile boolean DECIMAL_POINT_IS_COMMAthe following are to do with DECIMAL POINT IS COMMA
Note: On development machines which have not been configured to target locale, java can be started as:java -Duser.language=en -Duser.country=GB ...
-
COMMA_CHAR
public static volatile char COMMA_CHAR -
DECIMAL_CHAR
public static volatile char DECIMAL_CHAR -
DECIMAL_STRING
-
FIXED_DECIMAL_POINT
public static final char FIXED_DECIMAL_POINT- See Also:
-
FIXED_DECIMAL_POINT_STR
- See Also:
-
MIN_DIGITS_FOR_BIG_DICIMAL
public static volatile int MIN_DIGITS_FOR_BIG_DICIMAL -
ADDITIONAL_COMP3_DIGITS_FOR_BIGDECIMALS
public static volatile int ADDITIONAL_COMP3_DIGITS_FOR_BIGDECIMALS -
CURRENCY_SIGN_CHAR
public static volatile char CURRENCY_SIGN_CHARfor internal use only
use Config.setCurrencySign to change currency from $ -
CURRENCY_SIGN
for internal use only
use Config.setCurrencySign to change currency from $ -
CURRENCY_SIGN_REG_EXP1
for internal use only -
FORMAT_STR
-
CENTURY_FORMAT_STR
-
FORMATTED_CENTURY_FORMAT_STR
-
US_FORMAT_STR
-
CURRENT_DATE_FORMAT_STR
-
DB_DATE_RETURN_FORMAT_STR
-
ESQL_DATE_RETURN_FORMAT_STR
-
DB2_NULL_DATE_REPLACEMENT_STR
-
SPACE_BYTE
public static volatile byte SPACE_BYTE -
SPACE_CHAR
public static volatile char SPACE_CHAR -
IS_RUNNING_ON_MAINFRAME
public static final boolean IS_RUNNING_ON_MAINFRAME- See Also:
-
IS_RUNNING_ON_WINDOWS
public static volatile boolean IS_RUNNING_ON_WINDOWS -
POINTER_PICTURE
Used in CBLPointer constructor. Default definition for Pointer data-types (usually 4 Byes). -
POINTER_COMP_MODE
public static volatile int POINTER_COMP_MODEUsed in CBLPointer constructor. Default definition for Pointer data-types (usually 4 Byes). -
TMP_RELEASE_AFTER_EXECLINK
public static boolean TMP_RELEASE_AFTER_EXECLINK -
TMP_DYNAMICALLY_RESIZE_TARGET_OF_POINTER_DAO_WHEN_NECESSARY
public static final boolean TMP_DYNAMICALLY_RESIZE_TARGET_OF_POINTER_DAO_WHEN_NECESSARY- See Also:
-
TMP_CACHE_LIVE_SERVICES
public static final boolean TMP_CACHE_LIVE_SERVICES- See Also:
-
-
Constructor Details
-
Config
public Config()
-
-
Method Details
-
useEbcdicDataFiles
public static void useEbcdicDataFiles(boolean newValue) for interal use only- Parameters:
newValue
-
-
isUsingEbcdicDataFiles
public static boolean isUsingEbcdicDataFiles() -
getLogSystem
public static int getLogSystem() -
getScreenXSL
-
getDataDirectory
-
getPrintDirectory
information picked up from softwaremining.config PRINT_DIR Defaults to dataDirectory -
setDataDirectory
-
setSequentialFileExtention
Allows overriding SEQUENTIAL_FILE_EXTENSION which defaults to ".txt" at run time- Parameters:
newExtention
-
-
setDecimalIsComma
public static void setDecimalIsComma(boolean useComma) -
setLocale
-
setCurrencySign
public static void setCurrencySign(char currencySign) -
getEnvironmentVariable
get Environment variable from machine configuration- Parameters:
enviromentVariableName
-- Returns:
-
getDecimalPointCommaNumberFormat
-
reloadProperties
public static void reloadProperties() -
loadDefaultProperties
public static void loadDefaultProperties()for internal use - read and applies configuration values from property file- Parameters:
propertyFileName
- (default softwaremining.properties)
-
loadProperties
for internal use - read and applies configuration values from property file- Parameters:
propertyFileName
- (default softwaremining.properties)
-
getPropertiesFile
for internal use - get the application property file corect.propertis- Returns:
-
toPrintString
-