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
 

 

COBOL- REDEFINE CLAUSE

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

New User


Joined: 29 Mar 2006
Posts: 59
Location: Montreal

PostPosted: Wed Sep 26, 2007 4:12 pm    Post subject: COBOL- REDEFINE CLAUSE
Reply with quote

Hi All,
Can I redefine a FILLER item.
like shown below
05 FILLER X(9)
05 MAJ-MIN-LINE REDEFINES FILLER
10 MAJ-LINE-CODE XX
10 MIN-LINE-CODE XX
10 FILLER X(5)

Thanks
Venkat
Back to top
View user's profile Send private message

enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10274
Location: italy

PostPosted: Wed Sep 26, 2007 4:16 pm    Post subject: Reply to: COBOL- REDEFINE CLAUSE
Reply with quote

A phylosophical consideration ...

A filler is just a place keeper for something You are not interested in,

redefining it means that You are interested in the content of that spot,
so why not just define the new layout and get rid of the filler ???

I wonder

regards

e.s
Back to top
View user's profile Send private message
CICS Guy

Senior Member


Joined: 18 Jul 2007
Posts: 2150
Location: At my coffee table

PostPosted: Wed Sep 26, 2007 4:19 pm    Post subject: Re: COBOL- REDEFINE CLAUSE
Reply with quote

venktv wrote:
Can I redefine a FILLER item.
No, not that way...
This would be the same thing and valid to boot....
05 MAJ-MIN-LINE X(9)
05 FILLER REDEFINES MAJ-MIN-LINE
10 MAJ-LINE-CODE XX
10 MIN-LINE-CODE XX
10 FILLER X(5)
Back to top
View user's profile Send private message
Help-Me-Out

New User


Joined: 09 Dec 2006
Posts: 56
Location: Pune

PostPosted: Wed Sep 26, 2007 4:24 pm    Post subject: Reply to: COBOL- REDEFINE CLAUSE
Reply with quote

Hi,

You cann't use the filler in the redefine clause. icon_eek.gif It will definatly give Sever error. in the compilation. icon_confused.gif
Back to top
View user's profile Send private message
guptae

Moderator


Joined: 14 Oct 2005
Posts: 1187
Location: Bangalore,India

PostPosted: Wed Sep 26, 2007 4:33 pm    Post subject:
Reply with quote

Hi Venkat,

Please go through the follwoing link

http://www.ibmmainframes.com/viewtopic.php?t=7633&highlight=redefine+filler
Back to top
View user's profile Send private message
venktv

New User


Joined: 29 Mar 2006
Posts: 59
Location: Montreal

PostPosted: Wed Sep 26, 2007 4:44 pm    Post subject:
Reply with quote

Friends,

Thanks very much for the above responses...

I am planning to go with CICS Guy advise...

Thanks
Venkat
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 XML Parse for COBOL 5.2 Bhanu Praveen COBOL Programming 1 Sat Jul 08, 2017 8:58 pm
No new posts Easytrive Redefine vidyaa CA Products 4 Mon Jun 19, 2017 6:01 pm
No new posts Dynamic output file creation in cobol... smileheal COBOL Programming 7 Thu Jun 15, 2017 10:53 pm
No new posts Search utility(3.14) using JCl and Cobol RKS3 COBOL Programming 12 Sat Jun 10, 2017 10:24 pm
No new posts COBOL DB2 program - zIIP eligible vasanthz COBOL Programming 7 Wed May 31, 2017 5:12 am


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