Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

FIXED BIN (31) and FIXED BIN (63) - How many bytes?

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> PL/I & Assembler
View previous topic :: :: View next topic  
Author Message
sundarkudos

New User


Joined: 16 Oct 2008
Posts: 39
Location: Chennai

PostPosted: Thu Nov 05, 2015 1:11 pm    Post subject: FIXED BIN (31) and FIXED BIN (63) - How many bytes?
Reply with quote

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
View user's profile Send private message

prino

Active Member


Joined: 07 Feb 2009
Posts: 982
Location: Oostende, Belgium

PostPosted: Thu Nov 05, 2015 1:29 pm    Post subject: Re: FIXED BIN (31) and FIXED BIN (63) - How many bytes?
Reply with quote

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
View user's profile Send private message
Bill Woodger

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7223

PostPosted: Thu Nov 05, 2015 1:44 pm    Post subject: Reply to: FIXED BIN (31) and FIXED BIN (63) - How many bytes?
Reply with quote

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
View user's profile Send private message
Bill O'Boyle

CICS Moderator


Joined: 14 Jan 2008
Posts: 2502
Location: Atlanta, Georgia, USA

PostPosted: Thu Nov 05, 2015 5:35 pm    Post subject: Reply to: FIXED BIN (31) and FIXED BIN (63) - How many bytes?
Reply with quote

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. icon_wink.gif
Back to top
View user's profile Send private message
Nic Clouston

Global Moderator


Joined: 10 May 2007
Posts: 1712
Location: UK

PostPosted: Thu Nov 05, 2015 7:33 pm    Post subject:
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> PL/I & Assembler All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts How to copy data with delimters to fi... Venkata Ramayya DFSORT/ICETOOL 2 Wed Feb 24, 2016 10:03 pm
No new posts Syncsort 1.4.2 - Variable file - Igno... TS70363 SYNCSORT 9 Fri May 22, 2015 9:45 pm
No new posts OUTREC fill bytes restants josessegura DFSORT/ICETOOL 5 Thu Apr 16, 2015 12:40 am
No new posts Add delimiters in a fixed length record Venkata Ramayya DFSORT/ICETOOL 4 Fri Mar 27, 2015 3:49 am
No new posts how to convert fixed-point data forma... Roland Brosio DFSORT/ICETOOL 4 Mon Mar 16, 2015 6:16 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us