View previous topic :: View next topic
|
Author |
Message |
sundarkudos
New User
Joined: 16 Oct 2008 Posts: 39 Location: Chennai
|
|
|
|
Dear All,
Currently, we are working on migrating PL/I v1.1 code to Enterprise PL/I v4.2.
In some programs, variables are declared as FIXED BIN(63) where the below warning is encountered while compiling with PL/I v4.2 but no warning with Pl/I v1.1.
IBM1151I W FIXED BINARY precision is reduced to maximum value(31).
Explanation: The maximum FIXED BIN precision depends on the LIMITS
option.
Hence, declared variable will be reduced to FIXED BIN(31).
I hope the same truncation/reduction would have happened with v1.1 also, though it did not throw any warnings. So, I'm not providing any fix for this warning, as the functionality would remain unaltered.
Just wanted to get experts opinion also. Please share your thoughts.
Thanks,
Sundar. |
|
Back to top |
|
|
prino
Senior Member
Joined: 07 Feb 2009 Posts: 1306 Location: Vilnius, Lithuania
|
|
|
|
sundarkudos wrote: |
I hope the same truncation/reduction would have happened with v1.1 also, though it did not throw any warnings. So, I'm not providing any fix for this warning, as the functionality would remain unaltered. |
Idiot! If the compiler gives you a warning, you DO something about it.
"Oh, I've got black ever growing mole on my arm, but it doesn't hurt, so I'll leave it as I can still move my arm"
Types of you are a cancer on our profession!
DID YOU EVER BOTHER TO READ THE EFFING MANUAL AND WHAT THE LIMITS OPTION IS FOR? |
|
Back to top |
|
|
Bill Woodger
Moderator Emeritus
Joined: 09 Mar 2011 Posts: 7309 Location: Inside the Matrix
|
|
|
|
You need all the compiler options the same between the two releases, or to know exactly the impact of any differences.
You can't make any assumptions like you have made. They don't make sense. |
|
Back to top |
|
|
Bill O'Boyle
CICS Moderator
Joined: 14 Jan 2008 Posts: 2501 Location: Atlanta, Georgia, USA
|
|
|
|
FIXED BIN (31) is S9(08) BINARY in COBOL
FIXED BIN (63) is S9(18) BINARY in COBOL.
This should get you on your way.
In the future, please refer to the manuals. Not only for yourself, but for the rest of us. |
|
Back to top |
|
|
Nic Clouston
Global Moderator
Joined: 10 May 2007 Posts: 2455 Location: Hampshire, UK
|
|
|
|
Well it wouldn't throw a warning as nothing on the mainframe throws anything - except, perhaps, an operator!
Also FIXED BIN(31) is 31 bits + 1 sign bit - therefore 32 bits. I leave the conversion to bytes to you. |
|
Back to top |
|
|
|