False positive on rpg:S2793
SonarQube Server 2026.1
RPG version 3.13.0.7515
This raises a warning on data structures declared with the LIKEREC keyword. According to IBM’s documentation, a data structure defined with LIKEREC is a QUALIFIED data structure. This means that the error should not be raised on any data structure defined with the LIKEREC keyword. This is correctly handled for LIKEDS, but not for the relatively newer LIKEREC.
**free
dcl-ds screen likerec(vendinfo) template; // Warning incorrectly raised on this data structure as it is defined as a LIKEREC data structure