>What I changed was
>
>DO pgmname parm1, parm2, @parm3
>
>to
>
>DO pgmname parm1, parrm2, parm3
>
>In
pgmnameI set
parm3
and test the result in the calling program. It appears to work.
>
>>>My problem was the @ in front of the field name. When I change
@parm3 to
parm3 in my do command it worked.
>>>
>>>Thanks to every one who help.
>>
>>If it was a field name, you'd have had that problem even in a function call. You can only pass by reference a variable, not a field.
That's because as a "DO", the parameter is already by reference. If it was a function call "pgmname(parm1,parm2,@parm3)", it would need the "@" to make it a by reference call. Still can't add the "@" if it's a field, only if it's a variable.