MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Data representation in COBOL

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming
View previous topic :: View next topic  
Author Message
iknow
Beginner


Joined: 09 Jan 2006
Posts: 39
Topics: 15
Location: Inside the MATRIX

PostPosted: Mon Jan 09, 2006 9:08 am    Post subject: Data representation in COBOL Reply with quote

Hi All,

Here is a sample code...

A PIC X(04) VALUE IS 'KLMN'.
B REDEFINES A PIC S9(04).
ADD 1000 TO B.
DISPLAY B.

This gives 134E as answer.

Could anyone please let me know how the data is actually stored and how this operation is actually performed.
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12377
Topics: 75
Location: San Jose

PostPosted: Mon Jan 09, 2006 9:55 am    Post subject: Reply with quote

iknow,

Please check the second post from the top in this topic.

http://www.mvsforums.com/helpboards/viewtopic.php?t=2099&highlight=numproc

Hope this helps...

Cheers

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
iknow
Beginner


Joined: 09 Jan 2006
Posts: 39
Topics: 15
Location: Inside the MATRIX

PostPosted: Mon Jan 09, 2006 10:31 pm    Post subject: Reply with quote

Hi,

Thanks for your reply.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group