Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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 Moving a COMP-3 Variable to a Numeric... ajayachander COBOL Programming 1 Thu Dec 14, 2017 5:46 pm
No new posts ISSUE IN copying Sequential file reco... thesumitk JCL & VSAM 2 Wed Dec 13, 2017 3:07 pm
No new posts File Tailoring -- Temporary dataset i... samzee71 CLIST & REXX 3 Fri Dec 01, 2017 3:12 am
No new posts Rexx - File tailoring samzee71 CLIST & REXX 10 Thu Nov 30, 2017 10:47 pm
No new posts Moving a PS file as body of a mail! Vignesh Sid JCL & VSAM 4 Tue Nov 21, 2017 9:23 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us