*coment title
WRITE: 'hello world'.
"row comment"

TYPES:  name(10)    TYPE c,
        length      TYPE p DECIMALS 2,
        counter     TYPE i,
        id(5)       TYPE n.

TYPES:  BEGIN OF student,
        id(5)       TYPE n,
        name(10)    TYPE c,
        dob         TYPE d,
        place(10)   TYPE c,
        END OF student.

CONSTANTS:  pi TYPE p DECIMALS 2 VALUE '3.14',
            yes TYPE c VALUE 'X'.

write : pi.


"acrescentando valor de variáveis"
DATA:   a TYPE i,
        b TYPE i,
        c TYPE i,
        d TYPE i.

a = 15.
b = a.
MOVE 20 to c.
MOVE 500 to d.
MOVE 20 to a.

write:/ a, b, c, d.

a = 10 + c.
b = (5 * 10) * (b * 44).

write:/ a, b, c, d.      