CRITICAL
Rule Definition
Qualified data structures allow you to use the same field name in multiple structures without name conflict, provide a means of defining standard structures (the most obvious use of this is for APIs), and they lead to self documenting code.
Remediation
Try to use the QUALIFIED data structures in the RPG400 programs.
Violation Code Sample
D Phone DS
D CountryCode 5 Varying
D NDDPrefix 5 Varying
D AreaCode 5 Varying
D Number 9 Varying
D Extension 4 Varying
D IDDPrefix 5 Varying Dim(5)
Fixed Code Sample
D Phone DS Qualified
D CountryCode 5 Varying
D NDDPrefix 5 Varying
D AreaCode 5 Varying
D Number 9 Varying
D Extension 4 Varying
D IDDPrefix 5 Varying Dim(5)
Related Technologies
Technical Criterion
Programming Practices - Structuredness
About CAST Appmarq
CAST Appmarq is by far the biggest repository of data about real IT systems. It's built on thousands of analyzed applications, made of 35 different technologies, by over 300 business organizations across major verticals. It provides IT Leaders with factual key analytics to let them know if their applications are on track.