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
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 ….