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
This topic is locked: you cannot edit posts or make replies. Fetching data from BAI File arunsoods JCL & VSAM 1 Wed Jul 19, 2017 4:28 pm
No new posts Write out NODUPS but just from one file Jay Villaverde DFSORT/ICETOOL 8 Fri Jul 14, 2017 12:44 am
No new posts How to add header with Date(YYMMDD) i... Rajan Moorthy DFSORT/ICETOOL 2 Thu Jul 06, 2017 11:44 pm
No new posts How to generate a new unique Input fi... for1ranjith CLIST & REXX 11 Sat Jul 01, 2017 12:09 pm
No new posts Writing a file using online program grvtomar PL/I & Assembler 3 Fri Jun 30, 2017 1:06 pm


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