PROC-END
Begin and end the procedure division
WSupported on Windows
|
USupported on Unix
|
VSupported on OpenVMS
|
NSupported in Synergy .NET
|
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