385 pts.
 How does one change an S9(7) comp-3 value to a 9(7) field?
From an externally define file I bring in an S9(7) comp-3 value how can I convert this field to a 9(7) that I can use to make a compare like 'IF field1 = field2 then do' .

Software/Hardware used:
ASKED: August 6, 2009  3:30 PM
UPDATED: August 7, 2009  1:09 PM

Answer Wiki:
It has been close to 20 years since I have done any cobol programming, so this may not be what you are looking for. From looking at http://en.allexperts.com/q/Cobol-1443/move-differing-field-types.htm I think that all you need to do is move it from one field to another and cobol will take care of the conversion. Sort of like doing a MOVE or MOVEL in RPG.
Last Wiki Answer Submitted:  August 6, 2009  7:29 pm  by  Teandy   5,830 pts.
All Answer Wiki Contributors:  Teandy   5,830 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _


 

Yes, Teandy is correct.

 445 pts.