MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Redefining a numeric item to signed numeric comp-3 item

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming
View previous topic :: View next topic  
Author Message
deadlycoder
Beginner


Joined: 25 May 2006
Posts: 24
Topics: 11

PostPosted: Wed Sep 13, 2006 12:25 am    Post subject: Redefining a numeric item to signed numeric comp-3 item Reply with quote

Hi all,

I am in a fix here.
The situation is like this:

Whenever I move a signed numeric comp-3 item to a signed numeric comp-3 item I can see the values in my file layout.

The problem arises here
My program is doing a date conversion.
I/P date is in signed numeric comp-3 form.
a routine converts it into julian format in numeric form.
I move this converted date into the output date field which is is signed numeric comp-3.
Hence the date values are not visible properly. Junk values are seen.

I even redefined the output converted date(which was numeric only) to a signed numeric comp-3.
[/05 WS-JUL-DATE REDEFINES WS-JULIAN-DATE.
10 WS-JUL-DATE1 PIC S9(07) COMP-3.]
When I moved WS-JUL-DATE the same results occurred. No date value was displayed.
When I moved WS-JUL-DATE1 S07 OCCURRED.

Can you throw some light over this matter?

Plz guide me asap.
_________________
'Achievement is almost automatic when the goal becomes an inner commitment'
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12370
Topics: 75
Location: San Jose

PostPosted: Wed Sep 13, 2006 5:50 am    Post subject: Reply with quote

Quote:

Whenever I move a signed numeric comp-3 item to a signed numeric comp-3 item I can see the values in my file layout. Hence the date values are not visible properly. Junk values are seen.


They arenot Junk values. You need to understand how comp-3 items are stored. Open the file in edit/browse modeand type hex onand see the contents of the data or display the field using display statement


Check this link which explains about the internal reprenstation of the COMP-3 fields

http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/IGY3PG10/1.3.4.7?DT=20020923143836

Hope this helps...

Cheers

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group