There have been lots of answers that seem to ignore the fact that the OP asked
specifically about Server Express V4 SP2.
If you check the documentation at:
http://supportline.microfocus.com/Documentation/books/sx40sp2/sx40indx.htm
, you will find information on:
NATIVE-FLOATING-POINT
compiler directive. According to the documentation,
"Specifying NATIVE-FLOATING-POINT causes all floating point data items to use
IEEE. Specifying NONATIVE-FLOATING-POINT causes the format used to be determined
by the MAINFRAME_FLOATING_POINT environment variable."
The V4 dox aren't good on the environment variable, but the V5 dox explain it,
i.e.
"TRUE Specifies that IBM hexadecimal format floating point data items are to be
used."
***
In other words, if you download a mainframe file in "binary" (keeping character
data in EBCDIC and COMP fields with mainframe sign nibbles) you will ALSO be
able to use S/390 (hex format) COMP-1 and COMP-2 values.
If you want to have a "combination" of ASCII data and S/390 hex floating point
fields - or EBCDIC character data and IEEE floating point, then you will need to
do some more work.
***
In general,
Post by kimiIF USING ANY MICRO FOCUS product (not true for many others workstation
COBOL compilers
if you are "moving" data from the (IBM) mainframe to Windows, Linux, or Unix,
then you PROBABLY want to convert (before downloading) all (non-Unicode) data to
"USAGE DISPLAY".
For Comp, COMP-3, COMP-4, Packed-Decimal, and BINARY usages, this means
- move them to USAGE DISPLAY SIGN IS SEPARATE fields
For COMP-1 and COMP-2, then move them to
"external floating point" fields, i.e
Pic is +9(9).9(9)E+99
fields
Then download the data with EBCDIC to ASCII conversion. Then convert the fields
back to "native" fields. This will give you the "best performing" native data
types on the "Workstation".
If, on the other hand, you are moving files back and forth from the (IBM)
mainframe to the Workstation and run-time performance on the workstation isn't
the highest priority,
Then use all the MF directives to get "mainframe emulation" on the workstation.
This would include (but not be limited to)
CHARSET(EBCIC), IBM-COMP, NO-NATIVE-FLOATIN-POINT
In the Server Express V5 manuals at:
http://supportline.microfocus.com/Documentation/books/sx50/sx50indx.htm
you can find a book called
"Mainframe Emulation"
Even if you (like the OP) are using Server Express 4.0 (or one of the other MF
products), this book should give you good guidance on how to "emulate" the (IBM)
mainframe on the workstation (Unix, PC, or Linux).
Hopefully, this answers the original question without getting into what you can
and cannot do with other workstation COBOL compilers.
--
Bill Klein
wmklein <at> ix.netcom.com
Post by kimiHI ppl,
i have migrated the data on mainframe to SOLARIS UNIX.
COMP-1 and COMP-2 is read as junk when the application is
run on this data.
But COMP and COMP-3 data are read fine.
I have Microfocus Server Express 4.0 SP2 installed in my
UNIX system.
I believe This issue has something to do with the way the
operaring system interprets it.
Is there a way in which i can read this COMP-1 and COMP-2
data successfully??
Thanks and regards,
kimi