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
 

 

how comp value will be stored in the file ??

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
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    Post subject: how comp value will be stored in the file ??
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: 456
Location: Belgium

PostPosted: Sat Oct 20, 2007 12:15 pm    Post subject:
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    Post subject:
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    Post subject:
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    Post subject:
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    IBMMAINFRAMES.com Support Forums -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts SORTJOIN - Copy Matched and Unmatched... Steve Ironmonger DFSORT/ICETOOL 5 Tue Jan 17, 2017 4:26 pm
No new posts Copy RECFM =VB TO FB file with RECL =... sahil41352 DFSORT/ICETOOL 3 Wed Dec 28, 2016 11:29 pm
No new posts Is the 'prompt' data for the DSLIST p... Willy Jensen TSO/ISPF 2 Tue Dec 06, 2016 4:38 am
No new posts Add PD field from 2nd file to PD in 1st Sushant Garje DFSORT/ICETOOL 6 Thu Dec 01, 2016 4:32 pm
No new posts File Aid to File Manager conversion murali3955 IBM Tools 4 Thu Nov 24, 2016 3:41 pm


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