CAT is used in RPGIV code to concatenate two fields. The fields can be both variables and constants.
Example RPGIV Fixed Format
1 2 3 4 5 6 |
D Message 52A * C 'FirstName ' Cat 'LastName' Message C Message Dsply * * The text "FirstName LastName" will be shown on the screen |
This can be done much more effective in RPGIV code using EVAL.