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

How the value displays in the output in Comp-3


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

New User


Joined: 30 Jul 2004
Posts: 95

PostPosted: Sat Dec 11, 2004 4:38 pm
Reply with quote

hi all,

suppose i am having the decleration

01 a pic s9(6)v99 and i move the value 10005.0 then the question is how the value displays in the out put the out put should be hexadecimal foramt.

regards,
siva pradeep
Back to top
View user's profile Send private message
mmwife

Super Moderator


Joined: 30 May 2003
Posts: 1592

PostPosted: Sun Dec 12, 2004 12:49 am
Reply with quote

Hi Siva,

You don't mention how you plan to display the output. Use ISPF w/hex on?
DISPLAY to SYSOUT?, etc. You also don't mention how you will move the value 10005.0 to the COMP-3 field. I assume if you code it as a literal in a move stmt (without quotes) it will be treated as numeric edited data. If you move it from a data area you must define it as such.

After the move the data you cite will be represented in memory as:

X'001000500C'

If you DISPLAY it on SYSOUT it will appear as:

00100050{
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 Sortjoin and Search for a String and ... DFSORT/ICETOOL 1
No new posts Joinkeys - 5 output files DFSORT/ICETOOL 7
No new posts Build a record in output file and rep... DFSORT/ICETOOL 11
No new posts XDC SDSF output to temp dataset CLIST & REXX 4
No new posts XL C Trace Preprocessor Output All Other Mainframe Topics 3
Search our Forums:

Back to Top