Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Diff between implicit and explicit redefine.

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
View previous topic :: :: View next topic  
Author Message
vinodmaanju

New User


Joined: 10 May 2005
Posts: 28
Location: Pune

PostPosted: Mon Jan 30, 2006 10:59 pm    Post subject: Diff between implicit and explicit redefine.
Reply with quote

Hi,

One of my interviewer at IBM was asked about implicit redefine and explicit redefine and difference between them. Anyone can explain it

Thanks
Back to top
View user's profile Send private message

senthils

Active User


Joined: 15 Nov 2005
Posts: 117
Location: Chennai, India

PostPosted: Tue Jan 31, 2006 3:18 pm    Post subject:
Reply with quote

Explicit redefines is the one which you give in the Working-Storage section.
ex: 05 WS-TO-DATE1 REDEFINES WS-TO-DATE

Implicit redefines is the one which comes into effect in FILE section FD. If the FD of a file contains more than one 01 level number, the second 01 level variable redefines the first 01 level variable.

ex:
FD SAMPLE-FILE.
01 SAMPLE-REC1.
02 FILLER PIC X(80).

01 SAMPLE-REC2.
02 FILLER PIC X(70).

In the above example SAMPLE-REC1 and SAMPLE-REC2 share the same memory location even though we are not doing any REDEFINES. So it is called Implicit Redefines.
Back to top
View user's profile Send private message
vinodmaanju

New User


Joined: 10 May 2005
Posts: 28
Location: Pune

PostPosted: Tue Jan 31, 2006 8:07 pm    Post subject:
Reply with quote

Thanks Mr. senthils
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Compare PD Values with same storage &... Shrinika Rajendran JCL & VSAM 5 Wed Nov 05, 2014 3:17 pm
No new posts Redefine Numeric to Alphanumeric suraaj COBOL Programming 4 Mon Oct 06, 2014 9:16 pm
No new posts merge records from 2 ps files with di... kishpra DFSORT/ICETOOL 6 Wed Mar 19, 2014 1:00 pm
No new posts Initializing filler default value whe... dsivapradeep COBOL Programming 6 Thu Feb 13, 2014 11:17 am
No new posts Need help on SORT to write each input... rahul sijoriya JCL & VSAM 4 Mon Dec 02, 2013 9:09 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us