PROC-END
Begin and end the procedure division
WTSupported in traditional Synergy on Windows
|
WNSupported in Synergy .NET on Windows
|
USupported on UNIX
|
VSupported on OpenVMS
|
PROC . . . END
Discussion
The PROC statement ends the data division section of a program and begins the procedure division. You must use one PROC statement per routine.
The END statement ends the procedure division. If the procedure division is part of a main routine, subroutine, function, or method definition, you can alternatively end it with ENDMAIN, ENDSUBROUTINE, ENDFUNCTION, or ENDMETHOD, respectively.
The PROC and END statements are recognized with or without a beginning period.
Examples
record ;Data division dvar ,d6 avar ,a6 proc ;Beginning of the procedure division . . . end ;End of the procedure division