END-DS, END-PR, and END-PI may repeat the name of the item they close, as END-PROC already may:
DCL-DS SQLCA;
SQLCode INT(10);
END-DS SQLCA;
DCL-PR CheckLimit;
Amount PACKED(9:2) CONST;
END-PR CheckLimit;
The name is documentation - it does not change what is declared. When it does not match the name of the item being closed, the mismatch is reported as TRN1005. Names compare case-insensitively, and omitting the name is always valid.