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

How can we initialize 'filler' class


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
sararaju

New User


Joined: 04 May 2005
Posts: 25

PostPosted: Wed May 11, 2005 4:40 pm
Reply with quote

How can we initialize 'filler' class?
Back to top
View user's profile Send private message
learnmf

Active User


Joined: 14 Mar 2005
Posts: 123

PostPosted: Wed May 11, 2005 6:25 pm
Reply with quote

Quote:
How can we initialize 'filler' class?

Initialize dies not effect the filler.
So better use value clause.
Thanks
Chandra
Back to top
View user's profile Send private message
Deepa.m

New User


Joined: 28 Apr 2005
Posts: 99

PostPosted: Thu May 12, 2005 5:22 pm
Reply with quote

using VALUE clause.
10 FILLER PIC X(116) VALUE SPACES

i can think of only this way to initialize filler
Back to top
View user's profile Send private message
Ashutosh Shrinet

New User


Joined: 22 Aug 2004
Posts: 10
Location: New Delhi

PostPosted: Thu May 12, 2005 5:40 pm
Reply with quote

Filler can be initalize only through VALUE clause.
Back to top
View user's profile Send private message
gnagakishore

New User


Joined: 26 Mar 2005
Posts: 25
Location: Hyderabad

PostPosted: Thu May 12, 2005 9:27 pm
Reply with quote

we can acheive this by using " move "statement also
Back to top
View user's profile Send private message
ajay_dheepak

New User


Joined: 12 May 2005
Posts: 32
Location: Chennai

PostPosted: Fri May 13, 2005 5:29 pm
Reply with quote

As Ganga Kishore said you can do it with move iff the name of the Filler is unique
Back to top
View user's profile Send private message
mmwife

Super Moderator


Joined: 30 May 2003
Posts: 1592

PostPosted: Fri May 13, 2005 8:38 pm
Reply with quote

You can also move to any level above the filler, but of course, everything else at that level gets the same value too. E.g.:

Code:
 
05  one-up.
     10  num-fld  pic 999.
     10  filler   pic xx. 

    move spaces to one-up.


Also notice that you'll get spaces in the pic 9 field too. icon_smile.gif
You could then initialize one-up and all is well.
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 -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts building java class with zip4j.jar on... Java & MQSeries 0
No new posts Assembler class assignment: stuck on ... PL/I & Assembler 12
No new posts Need to add field to copybook, proble... COBOL Programming 14
No new posts File transfer from host with filler f... TSO/ISPF 15
No new posts A job with SYSSTC service class is ge... All Other Mainframe Topics 4
Search our Forums:

Back to Top