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

Need Reference Materials for REDEFINES Clause


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

New User


Joined: 19 Feb 2005
Posts: 28

PostPosted: Thu Apr 21, 2005 10:33 am
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
sivatechdrive

Active User


Joined: 17 Oct 2004
Posts: 191
Location: hyderabad

PostPosted: Thu Apr 21, 2005 11:15 am
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
www.helsinki.fi/atk/unix/dec_manuals/cobv27ua/cobrm_014.htm

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

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



Regards
Siva
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 Reference for COND parameter. JCL & VSAM 1
No new posts Reference documentation DFSDDLT0 IMS DB/DC 2
No new posts Trying to reference a javascript glob... CLIST & REXX 7
No new posts NOT IN clause in COBOL pgm COBOL Programming 8
Search our Forums:

Back to Top