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
 

 

Size error in MULTIPLY function

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

New User


Joined: 15 Nov 2006
Posts: 18
Location: Chennai

PostPosted: Tue Sep 13, 2011 4:55 pm    Post subject: Size error in MULTIPLY function
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    Post subject:
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    Post subject:
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

Active Member


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

PostPosted: Fri Sep 16, 2011 3:19 am    Post subject:
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    Post subject:
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10202
Location: italy

PostPosted: Fri Sep 16, 2011 11:47 pm    Post subject: Reply to: Size error in MULTIPLY function
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: 1738
Location: Bloomington, IL

PostPosted: Fri Sep 16, 2011 11:51 pm    Post subject:
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    Post subject:
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    Post subject:
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

Active Member


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

PostPosted: Sat Sep 17, 2011 12:17 am    Post subject:
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: 1738
Location: Bloomington, IL

PostPosted: Sat Sep 17, 2011 1:48 am    Post subject:
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    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 S922 Error yuvan ABENDS & Debugging 3 Fri Dec 02, 2016 6:58 pm
No new posts Invoke Webservice Fails with DFHPI100... divated CICS 2 Thu Nov 24, 2016 5:57 pm
This topic is locked: you cannot edit posts or make replies. RANDOM Function in COBOL swapnil781 COBOL Programming 2 Tue Nov 15, 2016 6:17 pm
No new posts Check System time(Minute) Using TIME1... balaji81_k DFSORT/ICETOOL 5 Fri Nov 11, 2016 10:53 am
No new posts Error during restore rename archanamuthukrishnan All Other Mainframe Topics 2 Fri Oct 14, 2016 3:30 pm


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