| Name |
Type |
Optional |
| NUMBERLINES |
INTEGER |
Yes |
By default, XMLBOOSTER's COBOLcode generator produces text without linenumbers. If given a positive value this variableis used as width for the line numberingscheme. For instance, the sample programbelow has been generated with NUMBER-LINES="6", as lines are numbered usinga numbering scheme with 6 digits.
|
| MAXLINELENGTH |
INTEGER |
Yes |
By default, XMLBOOSTER's COBOLcode generator assumes that there is nohard limit in terms of the line length.It will use newlines liberally, but it mightsometimes lines longer than what a given COBOLcompiler might accept.By setting this attribute, one can force XMLBoosterto ensure that it never generates any linelonger than a given limit.
|
| TRUNCATEIDENTIFIERS |
INTEGER |
Yes |
If set, this attribute causes the COBOL identifiers generatedby XMLBooster to be truncated to the length it specifies. Thismechanism does not provide any disambiguation mechanism for thetruncated identifers.
|
| USECLASSPREFIX |
BOOLEAN |
Yes |
If set to TRUE, XMLBOOSTER will usethe element name as prefix for all identifiers.For instance, the field named DAYin ENTRY will translated onto a COBOLvariable named ENTRY-DAY. This attributeoverrides PREFIX and POST-FIXas described above.
|
| USEINITIALIZE |
BOOLEAN |
Yes |
If set to TRUE, XMLBOOSTER will usethe INITIALIZE statement to initialize theCOBOL data structures, rather than initializing itsfields one by one, according to their type.
|
| USESTRINGSFORENUMS |
BOOLEAN |
Yes |
If set to TRUE, XMLBOOSTER will translatefields marked using an enumerated type to a characterstring, as opposed to an integer with 88 leveldeclarations.Using this option will make the generated data structureslargers, but in some cases, easier to use, as plain stringscan then be used from within ther user's application to testand set values in these fields. In any case, using this option does not deactivate checkingwhen parsing items denoted by an enumerated type: they must stillmatch one of the type's entries.
|
| MAXLEN |
INTEGER |
Yes |
When a field denotes a character stringtype, the COBOL-level MAXLEN attributecan be used to indicate the stringlength to use unless overriden locally.
|
| ARRAYSIZE |
INTEGER |
Yes |
When a field contains an array of instancesdenoted by another element, the COBOL-levelARRAYSIZE attribute can be usedto indicate the number of elements it containsif not overriden locally.
|
| CHECKFORSLICELEN |
BOOLEAN |
Yes |
If set to TRUE, this attribute causes the lengthof a slice to be checked for explicitly when dealing withan expression such as XMLB-BUFF(XMLB-PTR:XMLB-LEN)as some compilers crash when the length of the slice(XMLB-LEN in the example above) is zero.
|
| DATAPREFIX |
STRING |
Yes |
If specified, DATAPREFIX is used as prefixfor all field names (unless overridden explicitlyusing the OVERRIDE attribute)in the COBOL structures generated byXMLBOOSTER.
|
| LABELPREFIX |
STRING |
Yes |
If specified, LABELPREFIX is used as prefixfor all labels in XMLBooster-generated code.The default value for this attribute is"XMLBL-".
|
| COUNTERPOSTFIX |
STRING |
Yes |
If specified, COUNTERPOSTFIX is used as postfix toderive the counter in a collection from the nameof the field itself. The default value for this attributeis "COUNTER".
|
| BUFFERPREFIX |
STRING |
Yes |
If specified, BUFFERPREFIX is used as prefix todefine the buffer data name for the buffer for theelement.The default value for this attributeis DATAPREFIX+"BUFF-".
|
| ENUMBUFFERPREFIX |
STRING |
Yes |
If specified, ENUMBUFFERPREFIX is used as prefix todefine the buffer data namethat will hold the work value for anenumeration.The default value for this attributeis DATAPREFIX+"EBUFF-".
|
| INHERITEDPREFIX |
STRING |
Yes |
If specified, INHERITEDPREFIX is used as prefix todefine the buffer data namethat will hold the inherited fields in caseof inheritance.The default value for this attributeis DATAPREFIX+"INH-".
|
| ACCEPTPREFIX |
STRING |
Yes |
If specified, ACCEPTPREFIX is used as prefixfor all labels that parse top-level elements.The default value for this attributeis LABELPREFIX+"ACCEPT-".
|
| UNPARSEPREFIX |
STRING |
Yes |
If specified, UNPARSEPREFIX is used as prefixfor all labels that unparse top-level elements.The default value for this attributeis LABELPREFIX+"UNPARSE-".
|
| LOCALACCEPTPREFIX |
STRING |
Yes |
If specified, LOCALACCEPTPREFIX is used as prefixfor all locally defined labels that parse something(elements, enumerations, etc.)itself. The default value for this attributeis LABELPREFIX + "LACC-".
|
| LOCALACCEPTBODYPREFIX |
STRING |
Yes |
If specified, LOCALACCEPTBODYPREFIX is used as prefixfor all locally defined labels that parse the bodyof elements, excluding attributes.The default value for this attributeis LABELPREFIX + "LACB-".
|
| LOCALACCEPTENUMPREFIX |
STRING |
Yes |
If specified, LOCALACCEPTENUMPREFIX is used as prefixfor labels used to recognize enumeration values.The default value for this attributeis LOCALACCEPTPREFIX+"ENUM-".
|
| LOCALUNPARSEPREFIX |
STRING |
Yes |
If specified, LOCALUNPARSEPREFIX is used as prefixfor all locally defined labels that unparse something(elements, enumerations, etc.)itself. The default value for this attributeis LABELPREFIX + "LUNP-".
|
| LOCALUNPARSEBODYPREFIX |
STRING |
Yes |
If specified, LOCALUNPARSEBODYPREFIX is used as prefixfor all locally defined labels that unparse the body ofelements (exclusing the attributes).The default value for this attributeis LABELPREFIX + "LUNB-".
|
| FORCEUPPER |
BOOLEAN |
Yes |
If set to TRUE, this attributescauses all identifier generated by theXMLBOOSTER COBOL code generatorto be made of uppercase charactersonly.
|