cancel
Showing results for 
Search instead for 
Did you mean: 

difference between data and types

aravindcsebe
Explorer

Accepted Solutions (1)

Accepted Solutions (1)

ThorstenHoefer
Active Contributor
0 Kudos

Hi can define data based on your created types:

types : nam2 type c.
data : name type nam2.

Answers (1)

Answers (1)

0 Kudos

In TYPE STATEMENT you can define structure which have no physical memory on the other hand in DATA STATEMENT you can define structure with physical memory.

The TYPES statement creates a data type which are templates for creating data objects.

The DATA statement creates a data object which is an instance of a data type and occupies as much memory space as its type specifies.