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
 

 

PL/1 declaration DCL a BIT(8).

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

New User


Joined: 21 Jun 2007
Posts: 11
Location: pune

PostPosted: Thu Dec 20, 2007 4:19 pm    Post subject: PL/1 declaration DCL a BIT(8).
Reply with quote

Hi,
i declared a variable in PL/1 like DCL A BIT(8).

when i coded in program in this way
A = 9;
PUT SKIP LIST(A);
A = 10;
PUT SKIP LIST(A);

output came as
'10010000'B
'00010100'B whaere as i expected in other way.
atleast for 10 it should come 1010000......

could any body explain this to me...?
Back to top
View user's profile Send private message

Gnanas N

Active Member


Joined: 06 Sep 2007
Posts: 785
Location: Chennai, India

PostPosted: Sat Dec 22, 2007 11:14 am    Post subject:
Reply with quote

I am not sure.
But plesae assign the values as Binary, instead of Decimal.

Awaiting others reply.
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 Declaration of varchar in cobol s.saranya srinivasan COBOL Programming 6 Fri Sep 25, 2015 11:43 am
No new posts COBOL File Declaration for RECFM=VBS ... thinkmsk COBOL Programming 4 Fri Apr 03, 2015 3:31 pm
No new posts LOAD card with and without column dec... dilpreet DB2 1 Tue Aug 19, 2014 2:24 am
No new posts VSAM File Declaration for PD fields selvaraja CA Products 2 Wed Nov 27, 2013 5:58 am
No new posts Initialize a Time stamp with Not Null... maxsubrat DB2 2 Tue Sep 18, 2012 1:06 pm


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