Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

How can we initialize 'filler' class

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
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    Post subject: How can we initialize 'filler' class
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    Post subject:
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
Warnings : 1

New User


Joined: 28 Apr 2005
Posts: 99

PostPosted: Thu May 12, 2005 5:22 pm    Post subject: Re: initalize
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    Post subject: Re: initalize
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    Post subject:
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    Post subject:
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    Post subject:
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    IBMMAINFRAMES.com Support Forums -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Executing OO COBOL program invoking J... Virendra Shambharkar COBOL Programming 2 Tue Jan 10, 2017 6:37 pm
No new posts XFACILIT class setting for Fault Anal... egrove IBM Tools 2 Thu Aug 11, 2016 8:02 pm
No new posts Missing Java main class akg Java & MQSeries 3 Wed May 25, 2016 4:05 pm
No new posts DB2 Query to add matching class column senthamizh DB2 5 Fri Jan 15, 2016 8:32 pm
No new posts COPY BOOK with FILLER Chetan Kumar COBOL Programming 14 Sat May 31, 2014 7:58 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us