IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Size error in MULTIPLY function


IBM Mainframe Forums -> PL/I & Assembler
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
ashokakash

New User


Joined: 15 Nov 2006
Posts: 21
Location: Chennai

PostPosted: Tue Sep 13, 2011 4:55 pm
Reply with quote

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

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Tue Sep 13, 2011 5:37 pm
Reply with quote

why did you skip 14 and 16?
Back to top
View user's profile Send private message
k_vikram07

New User


Joined: 23 Nov 2005
Posts: 35

PostPosted: Fri Sep 16, 2011 1:04 am
Reply with quote

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

Senior Member


Joined: 07 Feb 2009
Posts: 1306
Location: Vilnius, Lithuania

PostPosted: Fri Sep 16, 2011 3:19 am
Reply with quote

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

New User


Joined: 23 Nov 2005
Posts: 35

PostPosted: Fri Sep 16, 2011 11:32 pm
Reply with quote

hmm. yea. wouldn't see with simple math.

fixes were in LE pl/1.
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Fri Sep 16, 2011 11:47 pm
Reply with quote

Quote:
hmm. yea. wouldn't see with simple math.

fixes were in LE pl/1.


evidence, post evidence, not just hearsay !
Back to top
View user's profile Send private message
Akatsukami

Global Moderator


Joined: 03 Oct 2009
Posts: 1788
Location: Bloomington, IL

PostPosted: Fri Sep 16, 2011 11:51 pm
Reply with quote

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

New User


Joined: 23 Nov 2005
Posts: 35

PostPosted: Sat Sep 17, 2011 12:02 am
Reply with quote

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

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Sat Sep 17, 2011 12:09 am
Reply with quote

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

Senior Member


Joined: 07 Feb 2009
Posts: 1306
Location: Vilnius, Lithuania

PostPosted: Sat Sep 17, 2011 12:17 am
Reply with quote

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

Global Moderator


Joined: 03 Oct 2009
Posts: 1788
Location: Bloomington, IL

PostPosted: Sat Sep 17, 2011 1:48 am
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> PL/I & Assembler

 


Similar Topics
Topic Forum Replies
No new posts Error to read log with rexx CLIST & REXX 11
No new posts Error when install DB2 DB2 2
No new posts CLIST - Virtual storage allocation error CLIST & REXX 5
No new posts Calling an Open C library function in... CICS 1
No new posts DATE2 function SYNCSORT 15
Search our Forums:

Back to Top