View previous topic :: View next topic
|
Author |
Message |
maverick05
New User
Joined: 14 Apr 2005 Posts: 54 Location: Earth
|
|
|
|
Hi,
I have a group variable(of a communication copybook) of 100 bytes.with last 10 bytes as filler.
But these last 10 bytes are having junk value.
So before moving the data to 90 bytes,i am initialising the group variable.
But filler is not initalised as initialisation wont touch filler(as per my knowledge)
So how to remove junk values from the last 10 bytes of filler???
Thanks |
|
Back to top |
|
|
dneufarth
Active User
Joined: 27 Apr 2005 Posts: 420 Location: Inside the SPEW (Southwest Ohio, USA)
|
|
|
|
check out 'referential modification'
move spaces to rec(90:10)
Dave |
|
Back to top |
|
|
Lord.of.Wind
New User
Joined: 17 Nov 2005 Posts: 60
|
|
|
|
dneufarth wrote: |
check out 'referential modification'
move spaces to rec(90:10)
Dave |
Hi, i think it should be 'move spaces to rec(91:10)'. |
|
Back to top |
|
|
sridevi2005
New User
Joined: 15 Sep 2005 Posts: 42
|
|
|
|
HI,
You can't itiliaze filler clause.
U have to move spaces by using referential modification.
Thanks,
Sridevi |
|
Back to top |
|
|
mmwife
Super Moderator
Joined: 30 May 2003 Posts: 1592
|
|
|
|
The general solution for a group level variable with perhaps multiple fillers is to move spaces to the group, then you can init.
This approach results in spaces in the fillers and appropriately inited varables of various data formats.
Of course, ref/moded moves will also work but can become cumbersom. |
|
Back to top |
|
|
|