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

how comp value will be stored in the file ??


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
karpagamr

New User


Joined: 13 Jun 2007
Posts: 8
Location: chennai

PostPosted: Sat Oct 20, 2007 11:33 am
Reply with quote

hi buddies,

am new born baby for this forum. Can any one tell me the internal storage for
COMP and COMP-3
for example;
01 a pic 9(3) comp '123'
01 a pic s9(3) comp-3 value '123'


comp-3 will store as

1 3
2 c

but how comp will be stored
if you edit the file, will it display '123' or any some binary value?

i know comp will be stored as binary, but i dindt view the file ?
Back to top
View user's profile Send private message
PeD

Active User


Joined: 26 Nov 2005
Posts: 459
Location: Belgium

PostPosted: Sat Oct 20, 2007 12:15 pm
Reply with quote

In the file you will see
Code:
007B
Back to top
View user's profile Send private message
Devzee

Active Member


Joined: 20 Jan 2007
Posts: 684
Location: Hollywood

PostPosted: Sat Oct 20, 2007 12:22 pm
Reply with quote

Quote:
if you edit the file, will it display '123' or any some binary value?
Go to ISPF edit or Browse and do HEX command to see the how the data is internally stored
Back to top
View user's profile Send private message
HARLEEN SINGH MANN
Warnings : 2

New User


Joined: 03 Aug 2007
Posts: 17
Location: Pune

PostPosted: Sun Oct 21, 2007 12:01 am
Reply with quote

"hex on" is the command u enter sir in ur editor of the file whr the data has been written.

Regards,
Back to top
View user's profile Send private message
krisprems

Active Member


Joined: 27 Nov 2006
Posts: 649
Location: India

PostPosted: Sun Oct 21, 2007 9:02 am
Reply with quote

Refer this linkhttp://www.simotime.com/databn01.htm
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 -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts SFTP Issue - destination file record ... All Other Mainframe Topics 2
No new posts Access to non cataloged VSAM file JCL & VSAM 18
No new posts Need help for File Aid JCL to extract... Compuware & Other Tools 23
Search our Forums:

Back to Top