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

Can we Declare Filler clause as 05 Filler X(9)


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

New User


Joined: 22 Sep 2005
Posts: 1

PostPosted: Thu Oct 13, 2005 4:33 pm
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
vishal_a

New User


Joined: 24 May 2005
Posts: 45
Location: Noida

PostPosted: Thu Oct 13, 2005 5:18 pm
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: 104
Location: Concord, New Hampshire, USA.

PostPosted: Thu Oct 13, 2005 6:19 pm
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: 1592

PostPosted: Sun Oct 16, 2005 7:56 am
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
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 To search DB2 table based on Conditio... DB2 1
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 NOT IN clause in COBOL pgm COBOL Programming 8
No new posts SUSBSCRIPT WITH SIGN IN PIC CLAUSE COBOL Programming 3
Search our Forums:

Back to Top