[an error occurred while processing this directive]

HP OpenVMS Systems Documentation

Content starts here

HP COBOL
User Manual


Previous Contents Index

B.3.2 Alpha- and I64-Specific COBOL Qualifiers and Flags

Table B-3 lists the command-line qualifiers and flags for features specific to HP COBOL on Alpha and I64 and not available on VAX.

Table B-3 HP COBOL on Alpha and I64 Options Not Available on VAX
OpenVMS Alpha and I64 Qualifier Tru64 UNIX Flag
/ALIGNMENT -align
/ARCHITECTURE= keyword -arch keyword
/ARITHMETIC=NATIVE -arithmetic native
/ARITHMETIC=STANDARD -arithmetic standard
No equivalent qualifier -c
No equivalent qualifier -call_shared
/CHECK=DECIMAL -check decimal
/CONVERT=LEADING_BLANKS -convert leading_blanks
No equivalent qualifier -cord
No equivalent qualifier -D num
/DISPLAY_FORMATTED -display_formatted
No equivalent qualifier -feedback file
/FLOAT=D_FLOAT (Alpha default) No equivalent flag
/FLOAT=G_FLOAT No equivalent flag
/FLOAT=IEEE_FLOAT (I64 default) No equivalent flag
/GRANULARITY= keyword -granularity keyword
/INCLUDE -include
No equivalent qualifier -K
No equivalent qualifier -L
No equivalent qualifier -L dir
No equivalent qualifier -l string
/MATH_INTERMEDIATE=CIT3 -math_intermediate cit3
/MATH_INTERMEDIATE=CIT4 -math_intermediate cit4
/MATH_INTERMEDIATE=FLOAT -math_intermediate float
No equivalent qualifier -names as_is
No equivalent qualifier -names lowercase
No equivalent qualifier -names uppercase
No equivalent qualifier -nolocking
No equivalent qualifier -non_shared
/OPTIMIZE=LEVEL= n -O n
No equivalent qualifier -p[ n]
No equivalent qualifier -relax_key_checking
/RESERVED_WORDS=[NO]200X -rsv [no]200x
/RESERVED_WORDS=[NO]FOREIGN_EXTENSIONS -rsv [no]foreign_extensions
/RESERVED_WORDS=[NO]XOPEN -rsv [no]xopen
No equivalent qualifier -shared
No equivalent qualifier -T [ num]
No equivalent qualifier -taso
/TIE No equivalent flag
No equivalent qualifier -tps
/OPTIMIZE=TUNE= keyword -tune keyword
No equivalent qualifier -V
No equivalent qualifier -v
No equivalent qualifier -xref , -xref_stdout

/ALIGNMENT=PADDING, -align padding

The HP OpenVMS Calling Standard requires that data fields be aligned on specific addresses (shown in those standards). The same standards specify that the lengths of all data records and group data items must be multiples of their alignments.

If /ALIGNMENT=PADDING or -align padding is present on the compile command line, COBOL group data-items will be aligned on their natural boundaries and those group items will be padded out to multiples of their alignments. Refer to the HP COBOL Reference Manual for detailed information about elementary data item alignment with Alpha alignment and padding in effect.

B.3.3 Qualifiers Only on HP COBOL for OpenVMS VAX

Table B-4 lists the command-line qualifiers and qualifier-option combinations that are specific to HP COBOL on VAX. Except as noted, these qualifiers have no equivalents on Alpha or I64 systems.

Table B-4 HP COBOL for OpenVMS VAX Specific Qualifiers
Qualifier Comments
/DESIGN Controls whether the compiler processes the input file as a detailed design.
/INSTRUCTION_SET[=option] Improves run-time performance on single-chip VAX processors, using different portions of the VAX instruction set.
/STANDARD=OPENVMS_AXP Produces informational messages on language features that are not supported by the HP COBOL compiler on Alpha or I64. (See the section on /STANDARD=OPENVMS_AXP in this appendix, and refer to the HP COBOL for OpenVMS VAX release notes.)
/STANDARD=PDP11 Produces informational messages on language features that are not supported by the COBOL-81 compiler.
/WARNINGS=STANDARD Produces informational messages on language features that are HP extensions. The HP COBOL equivalent on Alpha and I64 is the /STANDARD=SYNTAX qualifier or the -std syntax flag.

/STANDARD=V3, -std v3

HP COBOL on Alpha and I64 does not support a number of features supported by the implementation of the /STANDARD=V3 qualifier on VAX, as follows:

  • When subscripts are evaluated in STRING, UNSTRING, and INSPECT (Format 3) statements and the REMAINDER phrase of the DIVIDE statement
  • When reference modification is evaluated in STRING, UNSTRING, and INSPECT (Format 3) statements
  • When an out-of-range expression specifying the starting position or length of reference modification is detected; HP COBOL on Alpha and I64 detects the out-of-range expression at run time (if /CHECK=BOUNDS is used), whereas HP COBOL on VAX in some cases detects it at compile time
  • When the variable associated with the VARYING phrase is augmented in PERFORM... VARYING... AFTER statements (Format 4)
  • How PIC P digits are interpreted in some moves
  • When the size of variable-length tables (OCCURS DEPENDING ON) is determined in the MOVE statement

The /WARNINGS=ALL qualifier or the -warn all flag can help you determine the effects of /STANDARD=V3 and -std v3 ; in particular, the HP COBOL compiler on Alpha and I64 will generate the following informational messages if /STANDARD=V3 or -std v3 has been specified:

  • For items that may be affected by evaluation order in the INSPECT, STRING, UNSTRING, and DIVIDE statements:


    Previous Next Contents Index