The GU (generic, uppercase) format specification indicates that string data is to be converted to uppercase upon keyboard 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 G. If it is specified with FORM, error 1006 will be generated.)
- Input characteristics
When GU is used to input string data, 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 GU specification. When used with input of numeric data, GU operates the same as G.
The following example will convert all letters entered to uppercase:
00100 INPUT FIELDS "1,40,GU 10,r": X$
- Output characteristics
When GU is used for output in PRINT FIELDS or RINPUT FIELDS statements, it is treated the same as G (see the G format specification for more information). GU cannot be used for either input or output in a FORM statement.
The letter G can also be used as a Control Attribute.