View previous topic :: View next topic
|
Author |
Message |
Yuvaraj BP
New User
Joined: 12 Oct 2006 Posts: 12 Location: Bangalore
|
|
|
|
Hai all,
Is there any way to nullify the entrapped data in the filler clause, I mean is there any way to initialize a record with filler clause so the the junk data entrapped in the filler cluase can also be nullified appropriately |
|
Back to top |
|
|
William Thompson
Global Moderator
Joined: 18 Nov 2006 Posts: 3156 Location: Tucson AZ
|
|
|
|
Yuvaraj BP wrote: |
Is there any way to nullify the entrapped data in the filler clause, I mean is there any way to initialize a record with filler clause so the the junk data entrapped in the filler cluase can also be nullified appropriately |
"entrapped data"? are you referring to the the data in working storage represented by the elementary filler item?
In working storage, before populating the record, you can "initialize" the entire record by moving spaces to the group or using the INITIALIZE verb.
If the garbage already exists in a file record, that can be cleaned up also but it will require reading and then writing the record. |
|
Back to top |
|
|
Yuvaraj BP
New User
Joined: 12 Oct 2006 Posts: 12 Location: Bangalore
|
|
|
|
the verb INITIALIZE did not clean the entrapped data in the filler clause, but i cleared only the data in the data declared under the group item. |
|
Back to top |
|
|
William Thompson
Global Moderator
Joined: 18 Nov 2006 Posts: 3156 Location: Tucson AZ
|
|
|
|
Yuvaraj BP wrote: |
the verb INITIALIZE did not clean the entrapped data in the filler clause, but i cleared only the data in the data declared under the group item. |
Yup, I should have looked it up first....
If the filler is PIC X stuff, you could move spaces to the whole thing and then initialize it if you wanted named numeric fields set correctly.
Does that help? |
|
Back to top |
|
|
Yuvaraj BP
New User
Joined: 12 Oct 2006 Posts: 12 Location: Bangalore
|
|
|
|
sorry to ask you, i did not get this particular segment of your suggestion
"if you wanted named numeric fields set correctly." |
|
Back to top |
|
|
William Thompson
Global Moderator
Joined: 18 Nov 2006 Posts: 3156 Location: Tucson AZ
|
|
|
|
Yuvaraj BP wrote: |
sorry to ask you, i did not get this particular segment of your suggestion
"if you wanted named numeric fields set correctly." |
That is the beauty if the INITIALIZE verb, chacter fields get filled with spaces while numeric fields, comp, comp3 and display, get zeros. |
|
Back to top |
|
|
Yuvaraj BP
New User
Joined: 12 Oct 2006 Posts: 12 Location: Bangalore
|
|
|
|
so can i ask you again, how to initialize the filler clause variables, i am sorry because i could not follow that if you have answered in this thread. |
|
Back to top |
|
|
William Thompson
Global Moderator
Joined: 18 Nov 2006 Posts: 3156 Location: Tucson AZ
|
|
|
|
William Thompson wrote: |
If the filler is PIC X stuff, you could move spaces to the whole thing..... |
In other words, the overall group name.... |
|
Back to top |
|
|
Yuvaraj BP
New User
Joined: 12 Oct 2006 Posts: 12 Location: Bangalore
|
|
|
|
thank you,
i will try this, and again, i will meet you, bye |
|
Back to top |
|
|
mmwife
Super Moderator
Joined: 30 May 2003 Posts: 1592
|
|
|
|
Hi Yuvaraj,
The usual approach is to move spaces to the group level as Bill suggested, then INITIALIZE the group. |
|
Back to top |
|
|
|