Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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

Senior Member


Joined: 07 Feb 2009
Posts: 1060
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

Senior Member


Joined: 07 Feb 2009
Posts: 1060
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 Binary to display characters Roy Ware SYNCSORT 3 Tue Sep 19, 2017 8:46 pm
No new posts Converting Variable block file to Fix... bhavana yalavarthi DFSORT/ICETOOL 10 Tue May 16, 2017 2:20 pm
No new posts member list compare jzhardy TSO/ISPF 6 Fri May 12, 2017 3:18 pm
No new posts Check Binary Values for symbols gandikk CA Products 3 Tue Mar 21, 2017 5:11 am
No new posts resume binary ftp in z/os meykh2014 All Other Mainframe Topics 6 Sun Jan 22, 2017 10:01 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us