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 the value displays in the output in Comp-3

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
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    Post subject: How the value displays in the output in Comp-3
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    Post subject:
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    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 How to add header with Date(YYMMDD) i... Rajan Moorthy DFSORT/ICETOOL 2 Thu Jul 06, 2017 11:44 pm
No new posts JES2 doesn't honor the priority of th... Aron Lendvai JCL & VSAM 7 Thu Jun 29, 2017 1:41 pm
No new posts Dynamic output file creation in cobol... smileheal COBOL Programming 7 Thu Jun 15, 2017 10:53 pm
No new posts getting three output files out of JOI... migusd SYNCSORT 7 Mon Jun 05, 2017 11:30 pm
No new posts find RACF group for access to spooled... jzhardy JCL & VSAM 1 Mon May 08, 2017 11:46 am


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