Hi All,
Please clarify below questions, one intereviewer asked me
1. can i use redefining and redefined vaiables(ex: both are numeric) in one operation(ex: arthimatic) ?
2. if
01 A PIC X(10)
01 B REDEFINES A PICX(20)
how will B gets 20 bytes storage, actually A has 10 bytes only ?
this is my second question here, i didn't get the answer, i am expecting answer for this question
Thanks & Regards
SamayamSasi
needful- redefines
Moderators: dbzTHEdinosauer, Moderator Group
- dbzTHEdinosauer
- Moderator
- Posts: 981
- Joined: Mon Oct 02, 2006 8:31 pm
RE:needful- redefines
Hello,
Redefine can be given a higher value. It is built for one of this resons only. Internally there are memory that is allocated but not used this memory is used if it redefines a higher value. It doen't give compiler or runtime error. But it is not a better pratise to do the same.
Redefine can be given a higher value. It is built for one of this resons only. Internally there are memory that is allocated but not used this memory is used if it redefines a higher value. It doen't give compiler or runtime error. But it is not a better pratise to do the same.
With Love
Kiran G R
Kiran G R
- dbzTHEdinosauer
- Moderator
- Posts: 981
- Joined: Mon Oct 02, 2006 8:31 pm
There are differences between redefining a 01 level and redefining a level greater than 01. 01's will bound on mod8, levels greater than 01 will bound at next available without the syncronized clause.
the followning link http://mvshelp.net/vbforums/showthread.php?t=23215 is an interesting discussion of redefining.
the followning link http://mvshelp.net/vbforums/showthread.php?t=23215 is an interesting discussion of redefining.
Dick Brenholtz
JCL, SQL and code in programs have an irritating habit of doing what you say,
not what you meant.
JCL, SQL and code in programs have an irritating habit of doing what you say,
not what you meant.
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
- Cobol Interview Questions
50+ Interview Questions - JCL Interview Questions
50+ Interview Questions - DB2 Interview Questions
100+ Interview Questions - CICS Interview Questions
70+ Interview Questions - VSAM Interview Questions
27 Interview Questions
Other References
Mainframe Tools and others
- XPEDITER Reference
Explains how we can debug a program - FILEAID Reference
Explains how to browse , edit and delete datasets - Change Man Reference
Quick Start tutorial on Changeman - Abend Reference
Important Abend codes explained - FaceBook Page
MainframeGurukul FaceBook Page - LinkedIn Page
MainframeGurkul Linkedin Page