View previous topic :: View next topic |
Author |
Message |
maverick05 Beginner

Joined: 15 May 2005 Posts: 72 Topics: 24
|
Posted: Tue Nov 22, 2005 10:49 am Post subject: Initialization of filler |
|
|
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 |
|
Back to top |
|
 |
Phantom Data Mgmt Moderator

Joined: 07 Jan 2003 Posts: 1056 Topics: 91 Location: The Blue Planet
|
Posted: Tue Nov 22, 2005 11:03 am Post subject: |
|
|
maverick05,
Quote: |
But filler is not initalised as initialisation wont touch filler(as per my knowledge)
|
Surprising!. Did you try and see ?
Try this
Code: |
INITIALIZE ws-group-variable
REPLACING ALPHANUMERIC BY SPACES
NUMERIC BY ZEROES
|
Hope this helps,
Thanks,
Phantom |
|
Back to top |
|
 |
kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12380 Topics: 75 Location: San Jose
|
Posted: Tue Nov 22, 2005 11:40 am Post subject: |
|
|
Quote: |
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)
|
How are you initializing the group variable ? Please post your group definition and also the intilization statement.
Kolusu _________________ Kolusu
www.linkedin.com/in/kolusu |
|
Back to top |
|
 |
ANIL SARATHY Beginner

Joined: 30 Aug 2005 Posts: 88 Topics: 3 Location: Syracuse,New york
|
Posted: Tue Nov 22, 2005 10:56 pm Post subject: |
|
|
Phantom ,
is it possible with the code posted by you to initialize filler. i only know that fillers can't be touched with INITILIALIZE verb. any more comments on this
use reference modification to initialize last 10 bytes. _________________ Anil Sarathy |
|
Back to top |
|
 |
|
|