165 pts.
 Difference between LIKEREC and EXTNAME
Hi, I searched it on net, but couldn't find a satisfactorily answer, Can anyone tell what is the difference between EXTNAME keyword and LIKEREC keyword. Best Regards Shruti.

Software/Hardware used:
ASKED: April 20, 2009  2:39 PM
UPDATED: April 24, 2012  7:15 PM

Answer Wiki:
The understanding I have is, what LIKEREC do can be accomplished bu LIKEDS as well...and in case of externally described files, the same thing can be achieved by EXTNAME as well....Please explain *********** The use of LIKEDS implies a qualified data structure, which has more flexibility in how it's used and referred to. <a href="http://search400.techtarget.com/tip/0,289483,sid3_gci1208954_mem1,00.html#">Here's an informative article</a>. Also, here are IBM's explanations about: <a href="http://publib.boulder.ibm.com/infocenter/iseries/v5r4/topic/books_web/c092508602.htm#ToC_494">LIKEDS</a> <a href="http://publib.boulder.ibm.com/infocenter/iseries/v5r4/topic/books_web/c092508602.htm#ToC_495">LIKEREC</a> <a href="http://publib.boulder.ibm.com/infocenter/iseries/v5r4/topic/books_web/c092508602.htm#ToC_486">EXTFILE</a> CWC
Last Wiki Answer Submitted:  April 21, 2009  2:05 pm  by  Cwc   4,275 pts.
All Answer Wiki Contributors:  Cwc   4,275 pts. , Shrutigupta   165 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _


 

The difference between EXTNAME , LIKEREC , LIKEDS is as follows :
1. EXTNAME is used as DS when DS serves for the file field in question .Generally used when DS needs to be populated with values of the record as the file is read.
2. LIKEREC is used as *KEY for DS to be used for Chain, SETLL, READ operation in free format coding
3. LIKEDS is same as LIKEREC , except it cannot be used to do Chain , READE , READ operation . Generally used on factor 2 while Read operation is performed , where the DS gets populated with the read record.

Hope this helps ….

 10 pts.