ZBC400_F##_MENTO 패키지 따로 생성!!!
subroutine , 키워드 : form perform로 선언하여 사용
function group 폴더 안에 function module을 정의하고 이를 메인 프로그램에 가져다 쓴다
*액추얼 파라미터 선언부
perform calcu_add
using pa_int1 pa_int2
changing gv_result.
WRITE : 'pa_int1 : ' , pa_int1,
/'pa_int2 : ' , pa_int2.
WRITE : 'result : ' , gv_result.
*포멀 파라미터 선언부
*form calcu_add USING VALUE(pv_int1) TYPE i "call by value
* VALUE(pv_int2) TYPE i
* CHANGING VALUE(pv_result) TYPE i. "call by value and result
*form calcu_add CHANGING VALUE(pv_int1) TYPE i "call by value and result
* VALUE(pv_int2) TYPE i
* VALUE(pv_result) TYPE i.
*
*form calcu_add USING VALUE(pv_int1) TYPE i "call by value
* VALUE(pv_int2) TYPE i
* VALUE(pv_result) TYPE i.
form calcu_add USING VALUE(pv_int1) TYPE i
VALUE(pv_int2) TYPE i
CHANGING pv_result TYPE i. "call by reference
pv_result = pv_int1 + pv_int2.
endform.