Delineates the boundaries of a template section. Any number of other DGL statements can be between the
BEGIN
and
END
. The statements are optional; a section having no statements between the
BEGIN
and the
END
is legal.
BEGIN
and
END
always appear as a pair. Note that there is no end-of-statement symbol (;) after
BEGIN
.
SEGMENT SEG1; VARIABLE
STRING name;
STATE state-chart;
INTEGER status;
BEGIN
name:= stm_r_st_name (state_chart, status);
IF status = stm_success AND name <> ’’ THEN
WRITE (’.sh 1”’ , name, ’”\n’);
WRITE (’\n’);
ELSE
WRITE (’empty name or error status\n’);
END IF;
END ;