skip to main content

Library Routines : C$PARAMSIZE

C$PARAMSIZE
The C$PARAMSIZE library routine retrieves the size, in bytes, of a parameter passed by the caller.
Note: This routine cannot be used in the Procedure Division of a method. It returns information only on parameters passed by CALL, not by INVOKE.
Syntax:
 CALL "C$PARAMSIZE" USING paramNum
Parameters:
Return code:
paramSize can be any numeric data item. It receives the size of the parameter.
Examples:
Example - A program that may receive a variable size string to process it
working-storage section.
77 str-size pic 9(5).
linkage section.
01 the-string  pic x(512).
procedure division using the-string.
  call "c$paramsize" using 1 giving str-size
  inspect the-string(1:str-size) replacing all "," by "|"
  goback.

Copyright (c) 2017 Veryant
Contact us
Please share your comments on this manual or on any
Veryant product documentation with the email button at the top left