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

PL/1 declaration DCL a BIT(8).


IBM Mainframe Forums -> PL/I & Assembler
Post new topic   Reply to topic
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
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: 792
Location: Chennai, India

PostPosted: Sat Dec 22, 2007 11:14 am
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> PL/I & Assembler

 


Similar Topics
Topic Forum Replies
No new posts COBOL file declaration COBOL Programming 2
No new posts COBOL declaration for table DB2 3
No new posts Declaration of varchar in cobol COBOL Programming 6
This topic is locked: you cannot edit posts or make replies. COBOL File Declaration for RECFM=VBS ... COBOL Programming 6
No new posts LOAD card with and without column dec... DB2 1
Search our Forums:

Back to Top