How can the FUNCTION LENGTH intrinsic function be used to determine the length of a string in COBOL?

  • FUNCTION LENGTH OF STRING-NAME
  • FUNCTION LENGTH OF STRING-NAME RETURNING LENGTH-VARIABLE
  • FUNCTION LENGTH STRING-NAME
  • FUNCTION LENGTH(STRING-NAME)
The correct syntax for using FUNCTION LENGTH to determine the length of a string in COBOL is FUNCTION LENGTH OF STRING-NAME RETURNING LENGTH-VARIABLE. It returns the length of the specified string into the LENGTH-VARIABLE.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *