I was in error trying to explain the "floating sign".
It should read as follows:
You can use a "floating" - sign, e.g. ---.99; 00321 will print as 3.21; 00000 as .00; and 0032J (X'F0F0F3F3D1') will print as -3.21. Remember, your sending field must have a sign in its pic (S999v99), else all prints of negative #s will show as positive.
In simpler terms, you use an implied decimal place in an input file (or other file you read from) I.E
If the data for a field is supposed to be 18.99 if you didn't put the assumed decimial place it would read it as 1899.
However when you are going to be displaying the decimal point (on a printout for example) you use the actual decimal point, using the V in OUTPUT will ever give you an error or not display anything (on one compiler it gave me an error and on another it didn't do anything), likewise using the . (actual decimal) in INPUT will give you an error.
Chris Green
Computer Information Systems Student
Cayuga Community College -- Fulton
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.