View previous topic :: View next topic
|
Author |
Message |
yogeshbabu
New User
Joined: 30 Nov 2005 Posts: 19 Location: India
|
|
|
|
Hi all,
I want to know how we can display a comp-3 variable in SYSOUT?
Thanks & Regards,
Yogesh. |
|
Back to top |
|
|
raghunathns
Active User
Joined: 08 Dec 2005 Posts: 127 Location: rochester
|
|
|
|
there is no direct way to display.
you define equivalent working storage variable and display that variable.
Ex:
01 filed1 pic s9(3) comp-3.
01 filed2 pic -z99.
move field1 to field2.
display 'data:' field2 |
|
Back to top |
|
|
Mane Sagar
New User
Joined: 12 Jul 2005 Posts: 41 Location: mumbai
|
|
|
|
Hi yogeshbabu,
raghunathns is very right.. |
|
Back to top |
|
|
mmwife
Super Moderator
Joined: 30 May 2003 Posts: 1592
|
|
|
|
I think it should be mentioned that comp-3 #s diSplay well except for the 1 lowest order digit.
If you're using displays for testing it's probably not worth the effort to do the moves. I just display them the way they are and use the following table to get the lowest #:
Code: |
0 {or}
+1 A -1 J
+2 B -2 K
+3 C -3 L
+4 D -4 M
+5 E -5 N
+6 F -6 O
+7 G -7 P
+8 H -8 Q
+9 I -9 R |
|
|
Back to top |
|
|
yogeshbabu
New User
Joined: 30 Nov 2005 Posts: 19 Location: India
|
|
|
|
Thanks a lot |
|
Back to top |
|
|
|