View previous topic :: View next topic |
Author |
Message |
deadlycoder Beginner
Joined: 25 May 2006 Posts: 24 Topics: 11
|
Posted: Wed Sep 13, 2006 12:25 am Post subject: Redefining a numeric item to signed numeric comp-3 item |
|
|
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 |
|
|
kolusu Site Admin
Joined: 26 Nov 2002 Posts: 12376 Topics: 75 Location: San Jose
|
Posted: Wed Sep 13, 2006 5:50 am Post subject: |
|
|
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 |
|
|
|
|