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
 
Need Reference Materials for REDEFINES Clause

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

New User


Joined: 19 Feb 2005
Posts: 25

PostPosted: Thu Apr 21, 2005 10:33 am    Post subject: Need Reference Materials for REDEFINES Clause
Reply with quote

hi,
please provide me the site or book which will describe the redefine clause with good(many) examples.

please help in this.
Back to top
View user's profile Send private message
References
sivatechdrive

Active User


Joined: 17 Oct 2004
Posts: 167
Location: hyderabad

PostPosted: Thu Apr 21, 2005 11:15 am    Post subject:
Reply with quote

Hi Friend

The REDEFINES clause allows you to use different data description entries to describe the same computer storage area. Redefining declaration should immediately follow the redefined item and should be done at the same level. Multiple redefinitions are possible. Size of redefined and redefining need not be the same.

Example:
01 WS-DATE PIC 9(06).
01 WS-REDEF-DATE REDEFINES WS-DATE.
05 WS-YEAR PIC 9(02).
05 WS-MON PIC 9(02).
05 WS-DAY PIC 9(02).

check the below sites
http://www.helsinki.fi/atk/unix/dec_manuals/cobv27ua/cobrm_014.htm

http://www.csis.ul.ie/COBOL/lectures/CS4312Topics.htm

redefines in y2k problem
http://www.mitre.org/tech/cots/COBOL_Example.html



Regards
Siva
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