View previous topic :: View next topic
|
Author |
Message |
ashokakash
New User
Joined: 15 Nov 2006 Posts: 21 Location: Chennai
|
|
|
|
Hello all,
I have the below code getting a size error. Could you please help me fix this issue?
DCL (V1,V2) FIXED DEC (15,2);
V1 = 10.75;
V2 = MULTIPLY(V1,100,15,2);
I tried changing the the statements as below but still MULTIPLY fails. Could someone help me understand how MULTIPLY works? Thank you!
V2 = MULTIPLY(V1,100,13,2);
V2 = MULTIPLY(V1,100,17,2); |
|
Back to top |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
why did you skip 14 and 16? |
|
Back to top |
|
|
k_vikram07
New User
Joined: 23 Nov 2005 Posts: 35
|
|
|
|
What version of PL/1 is it?
I know there were issues in the early versions of PL/1 and IBM has released PTFs to fix these. |
|
Back to top |
|
|
prino
Senior Member
Joined: 07 Feb 2009 Posts: 1306 Location: Vilnius, Lithuania
|
|
|
|
k_vikram07 wrote: |
What version of PL/1 is it?
I know there were issues in the early versions of PL/1 and IBM has released PTFs to fix these. |
You've got to be kidding, I've been using PL/I since 1985 and have never heard about any problems with the MULTIPLY function.
Supply info about the PTF's and which versions of PL/I they apply to! |
|
Back to top |
|
|
k_vikram07
New User
Joined: 23 Nov 2005 Posts: 35
|
|
|
|
hmm. yea. wouldn't see with simple math.
fixes were in LE pl/1. |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
Quote: |
hmm. yea. wouldn't see with simple math.
fixes were in LE pl/1. |
evidence, post evidence, not just hearsay ! |
|
Back to top |
|
|
Akatsukami
Global Moderator
Joined: 03 Oct 2009 Posts: 1788 Location: Bloomington, IL
|
|
|
|
k_vikram07 wrote: |
fixes were in LE pl/1. |
Language Environment was introduced, IIRC, in 1996. Any PL/I compiler from before that time would have been withdrawn years ago. I very seriously doubt that the OP's shop is performing its own support of a very obsolete compiler; even modern IT managers aren't that moronically miserly. |
|
Back to top |
|
|
k_vikram07
New User
Joined: 23 Nov 2005 Posts: 35
|
|
|
|
yep. our shop recently moved to EPL/1. thats when we found the issue with MULTIPLY and realized that even available PTFs of LE PL/1 were not applied. |
|
Back to top |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
Quote: |
found the issue with MULTIPLY |
found an issue with MULTIPLY
or found lousy code?
and lousy code is code the works,
but does not completely follow the advise of the manuals.
IBM is pretty good about telling you
when an upgrade will invalidate properly written code.
IBM does not really have any sympathy for clowns who think they are slick. |
|
Back to top |
|
|
prino
Senior Member
Joined: 07 Feb 2009 Posts: 1306 Location: Vilnius, Lithuania
|
|
|
|
k_vikram07 wrote: |
yep. our shop recently moved to EPL/1. thats when we found the issue with MULTIPLY and realized that even available PTFs of LE PL/1 were not applied. |
So what was the exact issue with MULTIPLY?
I've had a look at all PL/I APAR's for EPLI V3.7 to V4.1 and there isn't a single one that relates to errors with the MULTIPLY builtin. |
|
Back to top |
|
|
Akatsukami
Global Moderator
Joined: 03 Oct 2009 Posts: 1788 Location: Bloomington, IL
|
|
|
|
k_vikram07 wrote: |
yep. our shop recently moved to EPL/1. thats when we found the issue with MULTIPLY and realized that even available PTFs of LE PL/1 were not applied. |
I call yivshish. What were you running, PL/I for OS/MFT V0.01? |
|
Back to top |
|
|
|