|
|
|||
|
Academic Programs |
LegacyJ FAQ |
||
|
COMP Truncation using LegacyJ I am able to move a five digit number into a PIC S9(4) COMP on the mainframe; is there anything I should know when migrating using LegacyJ? I am moving a 5 digit number into a 4 digit field in the following manner: Regarding storing values up to +32767 in 77 NBR PIC S9(4) COMP. There is a TRUNC(BIN) option with the IBM COBOL compiler. The equivalent of that in LegacyJ is the following:
These settings would allow fields that are defined as "PIC S9(4) COMP" to store values between -32768 and +32767 inclusive. Otherwise, you can fit only a 4-digit number. If you prefer not to set on TRUNCATE BINARY and COMP AS BINARY, then you can redefine your numeric field to any one of these:
Note that there is no PICTURE clause with these declarations. |
|
||
Home
About Us
Privacy
Legal
© Copyright LegacyJ Corp. 2007
All Rights Reserved.
All trademarks are the properties of their respective owners or licensers.