-host
Purpose
-host
or -host=EBCDIC
sets these compiler
options for host COBOL data representation and language semantics: BINARY(BE)
CHAR(EBCDIC)
COLLSEQ(EBCDIC)
FLOAT(BE)
NCOLLSEQ(BIN)
UTF16(BE)
-host
or -host=EBCDIC
option
changes the format of COBOL program command-line arguments from an array of pointers to an EBCDIC
character string that has a halfword prefix that contains the string length. For additional
information, see the related task below about using command-line arguments.The -host
option is compatible with COBOL for AIX.
Syntax
Defaults
The compiler does not set compiler options for host COBOL data representation and language semantics.Parameters
- EBCDIC
- Same as -host. Passes a z/OS®
style parameter list in EBCDIC to your program. The option converts the parameters
from a UNIX-style
main(int argc, char **argv)
to the z/OS and TSO convention ofstruct { uint16_t length; char string[]; }
. - ASCII
- Passes a z/OS style parameter list in ASCII to your
program. The option converts the parameters from a UNIX-style
main(int argc, char **argv)
to the z/OS and TSO convention ofstruct { uint16_t length; char string[]; }
.