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 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 Subtract the ZD fields to provide neg... Balaryan DFSORT/ICETOOL 4 Wed Oct 11, 2017 10:51 pm
No new posts Where is output from PARM ABEXIT (SNA... packerm CA Products 3 Thu Sep 28, 2017 4:06 pm
No new posts Garbage on output file Hervey Martinez SYNCSORT 4 Wed Sep 27, 2017 12:50 am
No new posts it is possible output a SET value fro... Martylin JCL & VSAM 5 Fri Sep 22, 2017 7:08 am
No new posts Split 1 file into 10 output Files - S... Prasanth Kumar SYNCSORT 5 Sat Sep 16, 2017 12:02 am

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