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 find RACF group for access to spooled... jzhardy JCL & VSAM 1 Mon May 08, 2017 11:46 am
No new posts Problem reading GTF trace output danik56 ABENDS & Debugging 7 Thu Mar 16, 2017 1:02 pm
No new posts SORT VSAM file with each field one by... maxsubrat DFSORT/ICETOOL 6 Tue Mar 14, 2017 1:07 pm
No new posts How to get current date -1 and curren... murali.andaluri DFSORT/ICETOOL 3 Wed Mar 08, 2017 2:09 pm
No new posts Incorrect output when trying to add n... monica1 PL/I & Assembler 10 Fri Jan 13, 2017 5:02 pm


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