ChatGPT ist doch jetzt das neue Handbuch ;-)

"Can you explain DSPATR(*UCASE) please"

Sure! DSPATR(*UCASE) is a display attribute in IBM i (AS400) that is used to display a field in uppercase letters. When you specify DSPATR(*UCASE) for a field in a display file, the field value will be displayed in uppercase characters, regardless of how it was entered or stored.

For example, suppose you have a display file that contains a field named FLD1 that can accept alphanumeric characters. If you specify DSPATR(*UCASE) for the FLD1 field, any characters entered in the field will be displayed in uppercase letters.

Here's an example of how to use DSPATR(*UCASE) in a display file:

less

Code:
A          R MYSCREEN
A                                  DSPSIZ(24 80 *DS3)
A                                  CA03(03 'Exit')
A                                  CF12(12 'Cancel')
A            FLD1         10A  DSPATR(*UCASE)      
A                                  ALARM
A                                  OVERLAY
A                                  ERASE
A                                  CLEAR
A                                  EXFMT MYSCREEN
In this example, the FLD1 field is defined with a length of 10 alphanumeric characters and the DSPATR(*UCASE) display attribute. When this display file is used, any characters entered into the FLD1 field will be displayed in uppercase letters.

Note that DSPATR(*UCASE) does not affect how the field value is stored or processed. It only affects how the field value is displayed on the screen.