View previous topic :: View next topic
|
Author |
Message |
santoshpatha-83
New User
Joined: 02 Apr 2007 Posts: 5 Location: noida
|
|
|
|
hi,
can any one please tell me, can i move the variable having a pic value s9(9)v9(6) comp3 which has a value 999999999.999999 can it be passed to a variable with pic value s9(9)v9(4). |
|
Back to top |
|
|
santoshpatha-83
New User
Joined: 02 Apr 2007 Posts: 5 Location: noida
|
|
|
|
hi,
does the above query give soc7 abend |
|
Back to top |
|
|
ragganga
New User
Joined: 22 Jan 2007 Posts: 18 Location: bangalore
|
|
|
|
Hi Santosh,
First tell me how can you store the value which has dot in between, then we will talk about moving.
Dot is Edit picture class, we are using only to display output
Regards
Raghu |
|
Back to top |
|
|
William Thompson
Global Moderator
Joined: 18 Nov 2006 Posts: 3156 Location: Tucson AZ
|
|
|
|
Assuming the actual data does not contail the actual decimal point character, yes, you can do the move and, no, it will not S0C7. |
|
Back to top |
|
|
santoshpatha-83
New User
Joined: 02 Apr 2007 Posts: 5 Location: noida
|
|
|
|
03 WS-MIN-VALUE PIC S9(9)V9(6) COMP-3.
03 WS-INPUT-VALUE PIC S9(9)V9(4).
MOVE 999999999.999999 TO WS-MIN-VALUE.
MOVE WS-MIN-VALUE TO WS-INPUT-VALUE----when i do this would i get soc7 |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
If you are not satisfied with the responses above, why not code it up and try for yourself, and let us know what the result was. |
|
Back to top |
|
|
ragganga
New User
Joined: 22 Jan 2007 Posts: 18 Location: bangalore
|
|
|
|
Hi Santosh,
Yes you will get SOC7 error.
Remove the decimal point (999999999999999) then move into
WS-MIN-VALUE, you don't get SOC7 error but the Pic clause for
WS-INPUT-VALUE what you mentioned above the DATA will truncate.
The Value after the move into WS-INPUT-VALUE will be 9999999999999
Regards
Raghu |
|
Back to top |
|
|
|