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
 

 

PUT LIST a FIXED BINARY value

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> PL/I & Assembler
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    Post subject: PUT LIST a FIXED BINARY value
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

Active Member


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

PostPosted: Thu Aug 27, 2009 9:27 pm    Post subject:
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    Post subject: Reply to: PUT LIST a FIXED BINARY value
Reply with quote

Tks,
I've checked the online manual, seems the PLI has problems to solve the scale.
http://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    Post subject:
Reply with quote

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

http://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

Site Director


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

PostPosted: Fri Aug 28, 2009 3:16 am    Post subject: Reply to: PUT LIST a FIXED BINARY value
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    Post subject:
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

Active Member


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

PostPosted: Fri Nov 13, 2009 11:06 pm    Post subject:
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    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 SQL query to run through list of valu... Ni3-db2 DB2 14 Wed Dec 14, 2016 9:52 am
No new posts Cobol list of programs being called biswajit.dattagupta COBOL Programming 5 Tue Nov 01, 2016 2:10 am
No new posts reorder screeNS using SWAP LIST? mrsidhu12 TSO/ISPF 5 Thu Sep 01, 2016 2:19 pm
No new posts Getting list of tables defined under ... kishpra DB2 2 Wed Aug 24, 2016 10:36 am
No new posts Casting a Binary Number to Numeric in... Bob Steinkraus Java & MQSeries 6 Tue Aug 09, 2016 5:58 pm


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