View previous topic :: View next topic
|
Author |
Message |
srini_igsi Currently Banned New User
Joined: 09 Dec 2005 Posts: 30 Location: Pune
|
|
|
|
Hi
1. When the source field PIC clause is S9(8) COMP-3, what shud be the PIC clause of the Target Field (If it is DISPLAY Usage).....?
2.When the source field PIC clause is S9(9) COMP, what shud be the PIC clause of the Target Field (If it is DISPLAY Usage).....?
3.When the source field PIC clause is S9(8) , what shud be the PIC clause of the Target Field (If it is COMP-3 Usage).....?
3.When the source field PIC clause is S9(7) , what shud be the PIC clause of the Target Field (If it is COMP Usage).....?
Thx in advance |
|
Back to top |
|
|
umeshkmrsh
New User
Joined: 21 Sep 2005 Posts: 79 Location: India
|
|
|
|
Hi
1. The target field should be at least of size PIC S9(8).
2.The target field should be at least os size PIC S9(9).
3.The target field should be at least os size PIC S9(8) COMP-3.
4.The target field should be at least os size PIC S9(7) COMP. |
|
Back to top |
|
|
srini_igsi Currently Banned New User
Joined: 09 Dec 2005 Posts: 30 Location: Pune
|
|
|
|
thx umesh |
|
Back to top |
|
|
vrakeshmbt
New User
Joined: 17 Aug 2005 Posts: 30
|
|
|
|
Srini,
i have a doubt, as comp-3 requires half a byte to store a digit the wht is the use of 9(8) in the first and third statement. |
|
Back to top |
|
|
umeshkmrsh
New User
Joined: 21 Sep 2005 Posts: 79 Location: India
|
|
|
|
Vrakesh,
COMP-3 requires have a byte to store each character, that's right.
But if the PIC clause is say 9(8) COMP-3, the bytes required to store will be 8/2 = 4 bytes.
If your doubt is something else please clarify it. |
|
Back to top |
|
|
|