Procedure Division - Format 2
>>-PROCEDURE DIVISION--+-----------------------------+---------->
| .------------------. |
| V | |
'-USING----| Using-phrase |-+-'
>--+--------------------------------------------------+--.------>
| (1) |
'-+-RETURNING-------+--+------------+--data-name-2-'
'-----------------' '-ADDRESS OF-'
'-+-------------+-'
| (1) |
'-GIVING------'
.-----------------------------------.
V |
>----paragraph-name.--+--------------+-+-----------------------><
| .----------. |
| V | |
'---sentence-+-'
Notes:
Figure 13. Coding Example to Show Procedure Division Organization
(C) Copyright IBM Corporation 1992, 2006. All Rights Reserved.