REDEFINES

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
reddynlr
Member
Posts: 4
Joined: Mon Feb 22, 2016 1:33 pm

REDEFINES

Post by reddynlr » Mon Feb 22, 2016 1:55 pm

01 GRP
05 WS-A PIC X(6) VALUE 'CHENNAI'.
05 WS-B REDEFINES WS-A.
10 WS-C PIC X(3) VALUE 'CHN'.
WHAT IS THE RESULT OF WS-C?

William Collins
Active Member
Posts: 732
Joined: Thu May 24, 2012 4:07 am

Post by William Collins » Mon Feb 22, 2016 3:31 pm

The question does not make much sense. The VALUE clause on WS-C is invalid, you can't have a VALUE clause on a REDEFINES or an item subordinate to the REDEFINES.

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