IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Is there any way to initialize a record with filler clause


IBM Mainframe Forums -> Mainframe Interview Questions
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Yuvaraj BP

New User


Joined: 12 Oct 2006
Posts: 12
Location: Bangalore

PostPosted: Sun Feb 04, 2007 10:16 pm
Reply with quote

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
View user's profile Send private message
William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3156
Location: Tucson AZ

PostPosted: Sun Feb 04, 2007 10:25 pm
Reply with quote

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
View user's profile Send private message
Yuvaraj BP

New User


Joined: 12 Oct 2006
Posts: 12
Location: Bangalore

PostPosted: Sun Feb 04, 2007 10:36 pm
Reply with quote

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
View user's profile Send private message
William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3156
Location: Tucson AZ

PostPosted: Sun Feb 04, 2007 10:43 pm
Reply with quote

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.... icon_redface.gif
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
View user's profile Send private message
Yuvaraj BP

New User


Joined: 12 Oct 2006
Posts: 12
Location: Bangalore

PostPosted: Sun Feb 04, 2007 10:47 pm
Reply with quote

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
View user's profile Send private message
William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3156
Location: Tucson AZ

PostPosted: Sun Feb 04, 2007 10:51 pm
Reply with quote

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
View user's profile Send private message
Yuvaraj BP

New User


Joined: 12 Oct 2006
Posts: 12
Location: Bangalore

PostPosted: Sun Feb 04, 2007 10:55 pm
Reply with quote

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
View user's profile Send private message
William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3156
Location: Tucson AZ

PostPosted: Sun Feb 04, 2007 10:57 pm
Reply with quote

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
View user's profile Send private message
Yuvaraj BP

New User


Joined: 12 Oct 2006
Posts: 12
Location: Bangalore

PostPosted: Sun Feb 04, 2007 11:04 pm
Reply with quote

thank you,
i will try this, and again, i will meet you, bye
Back to top
View user's profile Send private message
mmwife

Super Moderator


Joined: 30 May 2003
Posts: 1592

PostPosted: Tue Feb 06, 2007 8:23 am
Reply with quote

Hi Yuvaraj,

The usual approach is to move spaces to the group level as Bill suggested, then INITIALIZE the group.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> Mainframe Interview Questions

 


Similar Topics
Topic Forum Replies
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts SFTP Issue - destination file record ... All Other Mainframe Topics 2
No new posts FINDREP - Only first record from give... DFSORT/ICETOOL 3
No new posts To find whether record count are true... DFSORT/ICETOOL 6
No new posts Validating record count of a file is ... DFSORT/ICETOOL 13
Search our Forums:

Back to Top