Returns the string that results when the first letter in the specified source string is capitalized and all other characters in the string are converted to lowercase.
Syntax:
►►─── INITCAP (string) ───────────────────────────────────────────────────────►◄
Invocation names:
INITCAP
Parameters:
Specifies the string whose first letter is to be capitalized.
String can be:
Example:
In the example below, the initial cap function is used on employees' last names:
Initial value:
EMP-LNAME: 'O'HEARN '
Statement:
compute new-emp-lname = initcap(emp-lname)
Returned string:
'O'hearn '
|
Copyright © 2013 CA.
All rights reserved.
|
|