** This thread discusses the article: Tech Tip: Pass the Parameters **
For non-prototyped calls 'read only reference' can be accomplished ( in some if not all cases ) by the use of the factor 2 on the 'parm' opcode
** This thread discusses the article: Tech Tip: Pass the Parameters **
"Prototyped program calls can support all three of these parameter styles." Parameters to programs can only be passed by (constant) reference. Passing parameters by value is only allowed for proceudres and functions. Extract from the RPGIV Reference: The VALUE keyword cannot be specified for a parameter if its prototype was defined using the EXTPGM keyword. Calls to programs require that parameters be passed by reference. Birgitta
Comment