The CU (character, uppercase) format specification identifies string data that is to be converted to uppercase characters upon input. It can be used with INPUT FIELDS and RINPUT FIELDS processing on internal files. (PRINT FIELDS accepts it and treats it the same as C. If it is specified with FORM, however, error 1006 will be generated.)
- Input characteristics
When CU is used with keyboard input, case conversion automatically occurs as the characters are being typed in. Even if the operator attempts to type lowercase letters, only uppercase letters will appear on the screen. Characters other than the letters A-Z are not affected. Also, data that is already displayed is not changed -on the screen or internally -by a CU specification.
The following statement will convert all letters entered to uppercase:
00100 INPUT FIELDS "1,40,CU 10,r": X$
- Output characteristics
When CU is used for output with either PRINT FIELDS or RINPUT FIELDS, it is treated the same as C (see the C Format Specification for more information). CL cannot be used for either input or output in a FORM statement.