I guess what I should have phrased my question better know was can I move a PIC field to a usage comp field. What I have is a flat file that comes in and has a field called Str-size-in PIC X(3). I need to convert this field to a small int Srt-size-out PIC S9(4) usage comp. Can i do this with...
"I have a defined field called Field-Size PIC X(10)in my input record. I want to move that input field to a comp-3(Field-size-comp PIC S9(10) usage comp-3).
Can i do this with a simple move statement? For example:
MOVE Field-Size TO Field-Size-Comp
Write output-rec.
Or is...
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.