Portal | IBM Manuals | Downloads | Products | Refer | Info | Programs | JCLs | Forum Rules*| Site Map | Mainframe CD 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index
 
Register
 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index FAQ Search Memberlist Usergroups Profile Log in to check your private messages Log in
 
Can we Declare Filler clause as 05 Filler X(9)

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Mainframe COBOL
Author Message
kumarttp

New User


Joined: 22 Sep 2005
Posts: 1

PostPosted: Thu Oct 13, 2005 4:33 pm    Post subject: Can we Declare Filler clause as 05 Filler X(9)
Reply with quote

Hi All,
Can we Declare Filler as below.
05 Filler A(9)

or

05 Filler X(9)

which one is correct and if we Declare as mentioned first what will happen?
Thank you.
Back to top
View user's profile Send private message
References
vishal_a

New User


Joined: 24 May 2005
Posts: 39
Location: Noida

PostPosted: Thu Oct 13, 2005 5:18 pm    Post subject: Re: Filler
Reply with quote

Well u can declare filler as

05 Filler X(9)

and can also be declared as

05 x(9)

using filler is not mandatory in Cobol 85

regards
Vishal
Back to top
View user's profile Send private message
Sridevi_C

Active User


Joined: 22 Sep 2005
Posts: 107
Location: Concord, New Hampshire, USA.

PostPosted: Thu Oct 13, 2005 6:19 pm    Post subject:
Reply with quote

Hi,
What about PIC clause? I think,it's mandatory.So,
05 FILLER PIC A(9).
05 FILLER PIC X(9).
05 PIC X(9).
05 PIC A(9). (Use FILLER,for better documentation).
All the above four are allowed.All of them can be initialized to SPACES or some value,if necessary.
Regards,
Sridevi.
Back to top
View user's profile Send private message
mmwife

Super Moderator


Joined: 30 May 2003
Posts: 1526

PostPosted: Sun Oct 16, 2005 7:56 am    Post subject:
Reply with quote

If PIC A is used only the chars A thru Z or SPACE are allowed. Numerics (0 thru 9) and spec chars are NOT allowed.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Mainframe COBOL All times are GMT + 6 Hours
Page 1 of 1