Page 1 of 1

Doubt on fillers

PostPosted: Wed Dec 28, 2011 3:23 pm
by thangaraaj555
How do you move value to a filler during runtime??

Example:

05 ws-key .
10 ws-size pic x(5).
10 filler pic x(3).


How to move value to the above filler when some condition is matched?

Re: Doubt on fillers

PostPosted: Wed Dec 28, 2011 3:43 pm
by GuyC
you don't.
You can move the group field ws-key which will move all 8 bytes (including filler), but you can not move filler on it's own.

Re: Doubt on fillers

PostPosted: Wed Dec 28, 2011 4:00 pm
by BillyBoyo
You give it a name. Use the name.

If you want to make it more complex, use reference modification.

Re: Doubt on fillers

PostPosted: Wed Dec 28, 2011 6:47 pm
by Robert Sample
thangaraaj555, read the COBOL Language Reference manual. You use the word FILLER only for items that you do not need to reference in any way in your program. If you need to reference that variable, don't call it FILLER, period.