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

PUT LIST a FIXED BINARY value


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

New User


Joined: 30 Aug 2006
Posts: 3

PostPosted: Thu Aug 27, 2009 6:35 pm
Reply with quote

Hello all. Thanks for reading this post.
I am writing this to seek help about PUT LIST a FIXED BINARY's value.

The following is the codes:
Code:

DCL CHAR1 FIXED BINARY(15,5);
CHAR1=3.1415;
PUT SKIP LIST(CHAR1);


but it only display 3.12 in the output.
Could anyone tell me how to display the 3.1415;
Thank you in advance.

[/code]
Back to top
View user's profile Send private message
prino

Senior Member


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

PostPosted: Thu Aug 27, 2009 9:27 pm
Reply with quote

In PL/I you do not use scaled FIXED BIN. If you do, you bear the consequences.
Back to top
View user's profile Send private message
pnobe

New User


Joined: 30 Aug 2006
Posts: 3

PostPosted: Thu Aug 27, 2009 9:31 pm
Reply with quote

Tks,
I've checked the online manual, seems the PLI has problems to solve the scale.
publib.boulder.ibm.com/infocenter/ratdevz/v7r5/index.jsp?topic=/com.ibm.etools.pl1.win.doc/topics/plone-yyy.htm
Back to top
View user's profile Send private message
pnobe

New User


Joined: 30 Aug 2006
Posts: 3

PostPosted: Thu Aug 27, 2009 9:37 pm
Reply with quote

publib.boulder.ibm.com/infocenter/ratdevz/v7r5/index.jsp?topic=/com.ibm.ent.pl1.zos.doc/topics/ibmm2mst195.htm

publib.boulder.ibm.com/infocenter/pdthelp/v1r1/index.jsp?topic=/com.ibm.entpli.doc_3.5/ibmm2mst218.htm

The above links are supplement links.
For anyone fall into the samemistake i made
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Fri Aug 28, 2009 3:16 am
Reply with quote

Hello and welcome to the forum,

Thanks for posting what you learned icon_smile.gif

d
Back to top
View user's profile Send private message
jerryelvis

New User


Joined: 10 Nov 2009
Posts: 1

PostPosted: Fri Nov 13, 2009 10:07 pm
Reply with quote

@pnobe
Hi
as far as FIXED BINARY is concerned it is used only for arthimetic operations. for display function you need to use CHAR.

try this....

DCL CHAR1 CHAR(6) INIT('3.1415');
PUT SKIP LIST(CHAR1);

cheers.. icon_razz.gif
Back to top
View user's profile Send private message
prino

Senior Member


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

PostPosted: Fri Nov 13, 2009 11:06 pm
Reply with quote

jerryelvis wrote:
@pnobe
Hi
as far as FIXED BINARY is concerned it is used only for arthimetic operations. for display function you need to use CHAR.

try this....

DCL CHAR1 CHAR(6) INIT('3.1415');
PUT SKIP LIST(CHAR1);


crap

How do you intend to print reports with numbers if you can only print characters?
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 Pulling a fixed number of records fro... DB2 2
No new posts How to create a list of SAR jobs with... CA Products 3
No new posts Build dataset list with properties us... PL/I & Assembler 4
No new posts Converting fixed length file to excel... IBM Tools 7
No new posts list pds members name starting with xyz CLIST & REXX 11
Search our Forums:

Back to Top