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: 1101
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: 1101
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 How to list data set names with diffe... murali.andaluri CLIST & REXX 8 Thu Apr 12, 2018 11:33 pm
No new posts List of jobs ran thru scheduler ddhar All Other Mainframe Topics 1 Tue Mar 27, 2018 4:32 am
No new posts How could i share my personal dataset... James Halley TSO/ISPF 1 Fri Mar 23, 2018 9:41 pm
This topic is locked: you cannot edit posts or make replies. How could i share my personal dataset... samenxia163 TSO/ISPF 1 Fri Mar 09, 2018 12:18 pm
No new posts Get the list of data sets on DASD and... rakaitn JCL & VSAM 3 Thu Mar 08, 2018 12:38 pm

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