View previous topic :: View next topic
|
Author |
Message |
sprikitik
New User
Joined: 29 Jan 2007 Posts: 61 Location: Makati City, Philippines
|
|
|
|
Hello, good afternoon everybody.
can you please give me an idea how to write 0 (pic clause S9(8)) and S9(9)V99) using outrec?
Thank you very much! |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
What have you tried so far, and what errors / deviations from expected output are you getting. |
|
Back to top |
|
|
sergeyken
Senior Member
Joined: 29 Apr 2008 Posts: 2019 Location: USA
|
|
|
|
I asked a few questions to clarify unclear post by the TS, but my post has been silently deleted. Now I have to repeat it more detailed.
The term
Quote: |
write 0 (pic clause S9(8)) and S9(9)V99) using outrec |
can have various meanings.
1) writing 0 as constant in OUTREC, corresponding to PIC S9(8) can be either C'000000{', or X'F0F0F0F0F0F0F0C0'
2) 0 as constant of PIC S9(9)V99 can be either C'0000000000{', or X'F0F0F0F0F0F0F0F0F0F0C0'
3) a zero field converted in OUTREC as PIC S9(8) must use ...,TO=ZD,LENGTH=8,... parameters
4) a zero field converted as PIC S9(9)V99 must use ...,TO=ZD,LENGTH=11,...
I appeal to moderators to stop removing my posts, one after another.
(Mod : The deleted 'clarifying question' was whether the TS wanted to write '0' by hand or by a program) |
|
Back to top |
|
|
sergeyken
Senior Member
Joined: 29 Apr 2008 Posts: 2019 Location: USA
|
|
|
|
sergeyken wrote: |
1) writing 0 as constant in OUTREC, corresponding to PIC S9(8) can be either C'000000{', or X'F0F0F0F0F0F0F0C0'
2) 0 as constant of PIC S9(9)V99 can be either C'0000000000{', or X'F0F0F0F0F0F0F0F0F0F0C0'
3) a zero field converted in OUTREC as PIC S9(8) must use ...,TO=ZD,LENGTH=8,... parameters
4) a zero field converted as PIC S9(9)V99 must use ...,TO=ZD,LENGTH=11,...
I appeal to moderators to stop removing my posts, one after another.
(Mod : The deleted 'clarifying question' was whether the TS wanted to write '0' by hand or by a program) |
"Write by hand" assumes #1-2 above, while "write by program" assumed conversion of a value as in #3-4 above.
I tried to use "non-technical therminology" because there is no chance that TS can understand this updated explanation. |
|
Back to top |
|
|
|