Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8689

Re: problem in pass by value and pass by reference

$
0
0

By value:

The value of the parameter is transmited, no feed back, no update possible.

 PERFORM subr USING a1 a2 a3 a4 a5 

By Reference:

A pointer to the field is transmited, so the parameter can be updated in the calling program.

 PERFORM subr CHANGING a1 a2 a3 a4 a5 

Viewing all articles
Browse latest Browse all 8689