Wednesday, 27 April 2016

Difference between LIKE and TYPE

LIKE
TYPE
It is used to take reference of those variables that occupy memory.
It is used to refer to a built in data type or the one that is defined by ‘Types’ keyword.

It is used to refer to data objects.

It is used to refer to standard data types.
Eg:   data var1 type c.
        data var2 like var1.

Eg: data count type i.



No comments:

Post a Comment