Doubt on fillers

Support for OS/VS COBOL, VS COBOL II, COBOL for OS/390 & VM and Enterprise COBOL for z/OS

Doubt on fillers

Postby thangaraaj555 » Wed Dec 28, 2011 3:23 pm

How do you move value to a filler during runtime??


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?
Posts: 10
Joined: Thu Oct 13, 2011 12:17 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Doubt on fillers


Re: Doubt on fillers

Postby GuyC » Wed Dec 28, 2011 3:43 pm

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.
I can explain it to you, but i can not understand it for you.
Posts: 313
Joined: Tue Aug 11, 2009 3:23 pm
Has thanked: 1 time
Been thanked: 4 times

Re: Doubt on fillers

Postby BillyBoyo » Wed Dec 28, 2011 4:00 pm

You give it a name. Use the name.

If you want to make it more complex, use reference modification.
Global moderator
Posts: 3734
Joined: Tue Jan 25, 2011 12:02 am
Has thanked: 22 times
Been thanked: 254 times

Re: Doubt on fillers

Postby Robert Sample » Wed Dec 28, 2011 6:47 pm

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.
Robert Sample
Global moderator
Posts: 3099
Joined: Sat Dec 19, 2009 8:32 pm
Location: Bellevue, Iowa
Has thanked: 1 time
Been thanked: 176 times

Return to IBM Cobol


  • Related topics
    Last post