redefines clause

This is a Mainframe COBOL forum - you can post your queries on Mainframe COBOL, VS COBOL II, COBOL/370 , Enterprise COBOL

Moderators: dbzTHEdinosauer, Moderator Group

Post Reply
breentha_d
Member
Posts: 13
Joined: Mon Dec 10, 2007 1:32 pm

redefines clause

Post by breentha_d » Thu Jan 31, 2008 3:39 pm

hi ,

pls explain to me the meaning of the redefines clause in cobol..



thanks

mkk157
Member
Posts: 37
Joined: Wed Feb 07, 2007 2:00 pm
Location: Hyderabad

Post by mkk157 » Fri Feb 01, 2008 10:39 am

Kumar
If u can dream it, U can do it.

vanithaaraju
Member
Posts: 12
Joined: Tue Dec 11, 2007 4:51 pm

Post by vanithaaraju » Fri Feb 15, 2008 10:44 am

Redefines clause assigns same memory location for two different variables.
It can use the level name 01 - 49.
Redefines can use only the previous dataname.

ex:
01 a pic x(3).
01 b pic x(3) redefines a.

Here the same memory location is occupied by both a and b.

Post Reply

FREE TUTORIALS

Tutorials
Free tutorials from mainframegurukul
  • JCL Tutorial
    Covers all important JCL concepts.
  • Cobol Tutorial
    This tutorials covers all Cobol Topics from STRING to COMP-3.
  • DB2 Tutorial
    DB2 Tutorial focuses on DB2 COBOL Programming.
  • SORT Tutorial
    This Tutorial covers all important aspects of DFSORT with examples
  • CICS Tutorial
    This CICS tutorial covers CICS concepts and CICS Basics, CICS COBOL Programming.
Interview
Mainframe Interview questions



Other References
Mainframe Tools and others