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
 

 

Can FILLER be referenced as a field in a MOVE?

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
View previous topic :: :: View next topic  
Author Message
athul009

New User


Joined: 09 Oct 2007
Posts: 7
Location: US

PostPosted: Wed Dec 24, 2008 2:27 am    Post subject: Can FILLER be referenced as a field in a MOVE?
Reply with quote

Can you move FILLER from Input file Copybook to another variable of Output file ?

For instance, is the following would be valid?

MOVE FILLER OF DME-REPLY-DATA TO <OUTPUT-VARIABLE> .

Please let me know.
Thanks!
Back to top
View user's profile Send private message

dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Wed Dec 24, 2008 2:59 am    Post subject:
Reply with quote

Hello,

At the top of the page is a link to "IBM Manuals". Among them is the Language Reference for multiple current versions of the compiler.

Look up FILLER in the Language Reference manual and post back here if you find something that is not clear. Someone will be able to clarify.

When you have a question, you should start a new topic for your question rather than post a reply to an inactive, over a year-old topic.
Back to top
View user's profile Send private message
sudharsan.soundararajan
Warnings : 1

New User


Joined: 15 Oct 2008
Posts: 17
Location: Chennai

PostPosted: Wed Dec 24, 2008 12:04 pm    Post subject:
Reply with quote

Hi Atul,

Quote:
MOVE FILLER OF DME-REPLY-DATA TO <OUTPUT-VARIABLE> .


This code will not work. You will get a Compilation error as follows

"FILLER" was found in the "MOVE" statement.The statement was discarded.
Back to top
View user's profile Send private message
mmwife

Super Moderator


Joined: 30 May 2003
Posts: 1592

PostPosted: Wed Dec 24, 2008 7:27 pm    Post subject:
Reply with quote

Hi Atul,

Think about it for a minute. You can possibly have hundreds of FILLER fields in your pgm. How do you differentiate?

That's probably why IBM and the folks at ANSI/ISO "outlawed" FILLERs in COBOL stmts.
Back to top
View user's profile Send private message
athul009

New User


Joined: 09 Oct 2007
Posts: 7
Location: US

PostPosted: Wed Dec 24, 2008 10:19 pm    Post subject:
Reply with quote

Thanks for your answers, all!!


mmwife::<<You can possibly have hundreds of FILLER fields in your pgm. How do you differentiate? >>


Well, I had mentioned something like following :
MOVE FILLER OF DME-REPLY-DATA TO <OUTPUT-VARIABLE>.

So, I was hoping, it would be something similar to
MOVE 05-level-Var OF 01-level-Var TO <OUTPUT-VARIABLE>

That is how it differentiate between Similar named 05 level variables ( based on OF syntax. Hope this is clear to you.

As it does not allow the FILLER, I will modify the input copybook to WS-IN-FILLER in place of FILLER. And then, I should be able to move WS-IN-FILLER to WS_OUT-FILLER. Thanks again to all !!!!
Back to top
View user's profile Send private message
Douglas Wilder

Active User


Joined: 28 Nov 2006
Posts: 305
Location: Deerfield IL

PostPosted: Wed Dec 24, 2008 10:25 pm    Post subject:
Reply with quote

If it is being used it should not be named FILLER. It would be much better to name it something that indicates its use. If it is not being used why do you need to move it?
Back to top
View user's profile Send private message
Arun Raj

Moderator


Joined: 17 Oct 2006
Posts: 2177
Location: @my desk

PostPosted: Wed Dec 24, 2008 10:31 pm    Post subject:
Reply with quote

Quote:
Well, I had mentioned something like following :
MOVE FILLER OF DME-REPLY-DATA TO <OUTPUT-VARIABLE>.

So, I was hoping, it would be something similar to
MOVE 05-level-Var OF 01-level-Var TO <OUTPUT-VARIABLE>
athul009,

We can hope only if a single FILLER was allowed within a group item.
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Wed Dec 24, 2008 10:51 pm    Post subject:
Reply with quote

Hello,

Quote:
<<You can possibly have hundreds of FILLER fields in your pgm. How do you differentiate? >>
You don't. . .. FILLER is only used when there is no need to refer to the field directly (by name).
Back to top
View user's profile Send private message
hemanth.nandas

Active User


Joined: 18 Aug 2007
Posts: 120
Location: Chennai

PostPosted: Thu Dec 25, 2008 6:27 pm    Post subject:
Reply with quote

Athul,

If you need those value to be used you can Redefine the FILLER like as follows.

03 VAR-A REDEFINES FILLER
05 VAR-1 pic x(nn).

But it should be immediately after the FILLER declaration.

Than you can use it as

MOVE VAR-1 TO NEW-VAR.
Back to top
View user's profile Send private message
Craq Giegerich

Senior Member


Joined: 19 May 2007
Posts: 1512
Location: Virginia, USA

PostPosted: Thu Dec 25, 2008 10:28 pm    Post subject:
Reply with quote

I would suggest you try this before you offer it as advice.
Try it and let us know how well it works!



hemanth.nandas wrote:
Athul,

If you need those value to be used you can Redefine the FILLER like as follows.

03 VAR-A REDEFINES FILLER
05 VAR-1 pic x(nn).

But it should be immediately after the FILLER declaration.

Than you can use it as

MOVE VAR-1 TO NEW-VAR.
Back to top
View user's profile Send private message
hemanth.nandas

Active User


Joined: 18 Aug 2007
Posts: 120
Location: Chennai

PostPosted: Fri Dec 26, 2008 3:06 pm    Post subject: Reply to: Can FILLER be referenced as a field in a MOVE?
Reply with quote

Hello,

We have many applications and which have been declared and worked fine.

Even I had used many times before and worked fine. So, it isn't required me to test it again.

Thanks for suggestion. icon_wink.gif
Back to top
View user's profile Send private message
hemanth.nandas

Active User


Joined: 18 Aug 2007
Posts: 120
Location: Chennai

PostPosted: Fri Dec 26, 2008 3:39 pm    Post subject:
Reply with quote

Sorry, I again checked but I am wrong with this. We can Redefine a Variable to FILLER and not a Filler. I juct confused. Sorry for this.

And thanks to Craq.
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 INVALID FIELD OR CONSTANT IN SORTOF ?? Ron Klop DFSORT/ICETOOL 8 Wed Jan 11, 2017 3:44 pm
No new posts Performing arithmetic on input field zh_lad DFSORT/ICETOOL 31 Tue Dec 06, 2016 8:04 pm
This topic is locked: you cannot edit posts or make replies. How to move a long alphanumeric data ... lind sh COBOL Programming 8 Mon Dec 05, 2016 7:51 pm
No new posts Add PD field from 2nd file to PD in 1st Sushant Garje DFSORT/ICETOOL 6 Thu Dec 01, 2016 4:32 pm
No new posts How to split the records using the am... vnktrrd DFSORT/ICETOOL 24 Fri Oct 28, 2016 7:33 pm


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