# \#rpg

**URL:** https://community.sonarsource.com/tag/rpg/18.md

[Latest](https://community.sonarsource.com/latest.md) · [Categories](https://community.sonarsource.com/categories.md) · [Tags](https://community.sonarsource.com/tags.md)

---

## [False positive rpg:S1902 on data structures](https://community.sonarsource.com/t/false-positive-rpg-s1902-on-data-structures/177931)

<div class="topic-metadata">

**Author:** [@1337\_Nerd](https://community.sonarsource.com/u/1337_Nerd)\
**Replies:** 1\
**Last updated:** [March 17, 2026, 2:05pm UTC](https://community.sonarsource.com/t/false-positive-rpg-s1902-on-data-structures/177931 "2026-03-17T14:05:40Z")

</div>

False positive rpg:S1902 SonarQube Server 2026.1 RPG Subprocedures should not reference global variables - S1902 This raises a warning when the element within a global data structure is used to define like definition…

---

## [False positive rpg:S1633 on in \*dtaara](https://community.sonarsource.com/t/false-positive-rpg-s1633-on-in-dtaara/177933)

<div class="topic-metadata">

**Author:** [@1337\_Nerd](https://community.sonarsource.com/u/1337_Nerd)\
**Replies:** 1\
**Last updated:** [March 17, 2026, 1:22pm UTC](https://community.sonarsource.com/t/false-positive-rpg-s1633-on-in-dtaara/177933 "2026-03-17T13:22:57Z")

</div>

SonarQube Server 2026.1 RPG Define the data structure for this “IN” statement in its D spec - S1633 False positive on in \*dtaara. This is a keyword that allows you to get all data areas defined in the program at once,…

---

## [False positive rpg:S2793 on LIKEREC data structures](https://community.sonarsource.com/t/false-positive-rpg-s2793-on-likerec-data-structures/179573)

<div class="topic-metadata">

**Author:** [@1337\_Nerd](https://community.sonarsource.com/u/1337_Nerd)\
**Replies:** 1\
**Last updated:** [March 17, 2026, 12:47pm UTC](https://community.sonarsource.com/t/false-positive-rpg-s2793-on-likerec-data-structures/179573 "2026-03-17T12:47:18Z")

</div>

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 L…

---

## [Fully free format code not recognized as such if comments before \*\*free definition](https://community.sonarsource.com/t/fully-free-format-code-not-recognized-as-such-if-comments-before-free-definition/177932)

<div class="topic-metadata">

**Author:** [@1337\_Nerd](https://community.sonarsource.com/u/1337_Nerd)\
**Replies:** 4\
**Last updated:** [March 16, 2026, 3:49pm UTC](https://community.sonarsource.com/t/fully-free-format-code-not-recognized-as-such-if-comments-before-free-definition/177932 "2026-03-16T15:49:36Z")

</div>

While it’s not necessarily in spec, you can put fixed format comments before the \*\*free definition in an rpg program and it will still be recognized by an IBM iSeries as a fully free format program and compile as such. H…

---

## [RPG: Parser fails on enums](https://community.sonarsource.com/t/rpg-parser-fails-on-enums/177064)

<div class="topic-metadata">

**Author:** [@1337\_Nerd](https://community.sonarsource.com/u/1337_Nerd)\
**Replies:** 5\
**Last updated:** [February 11, 2026, 9:29am UTC](https://community.sonarsource.com/t/rpg-parser-fails-on-enums/177064 "2026-02-11T09:29:22Z")

</div>

Enums were introduced in IBM i 7.4 and can only be defined in free format. The parser will fail to parse any enum declarations in free format code with the following error: ”Could not parse line 2: Invalid assignment op…

---

## [RPG: Avoid deprecated date and time values](https://community.sonarsource.com/t/rpg-avoid-deprecated-date-and-time-values/177063)

<div class="topic-metadata">

**Author:** [@1337\_Nerd](https://community.sonarsource.com/u/1337_Nerd)\
**Replies:** 0\
**Last updated:** [January 31, 2026, 4:01pm UTC](https://community.sonarsource.com/t/rpg-avoid-deprecated-date-and-time-values/177063 "2026-01-31T16:01:13Z")

</div>

In RPG, several date and time variables use 2 digit years, which will break date math in 2039, similar to Y2K for other operating systems. Essentially, any 2 digit year greater than 40 is interpreted as the 1900s, any 2 …

---

## [False positive with RPG - S1601](https://community.sonarsource.com/t/false-positive-with-rpg-s1601/176933)

<div class="topic-metadata">

**Author:** [@1337\_Nerd](https://community.sonarsource.com/u/1337_Nerd)\
**Replies:** 1\
**Last updated:** [January 31, 2026, 12:17pm UTC](https://community.sonarsource.com/t/false-positive-with-rpg-s1601/176933 "2026-01-31T12:17:55Z")

</div>

SonarQube Server 2025.6 RPG Unused subroutines should be removed - S1601 False positive on \*INZSR subroutine. This subroutine is implicitly executed at program initialization, but is never explicitly called. It should…

---

## [java.lang.IllegalArgumentException: 28 is not a valid line for pointer. File EUCANCB010\_p2.rpg has 2](https://community.sonarsource.com/t/java-lang-illegalargumentexception-28-is-not-a-valid-line-for-pointer-file-eucancb010-p2-rpg-has-2/109487)

<div class="topic-metadata">

**Author:** [@Luca\_D\_Isanto](https://community.sonarsource.com/u/Luca_D_Isanto)\
**Replies:** 6\
**Last updated:** [February 21, 2024, 9:52am UTC](https://community.sonarsource.com/t/java-lang-illegalargumentexception-28-is-not-a-valid-line-for-pointer-file-eucancb010-p2-rpg-has-2/109487 "2024-02-21T09:52:44Z")

</div>

sonar-scanner-cli crash with the error below. After a long analysis we discover that the problem is if the file start with FOR-EACH syntax. Example file that can cause crash: dcl-pi bug\_mwe; …

---

## [545 is not a valid line for pointer. File yyy Sources/xxx/ac.RPGLE has 544 line(s)](https://community.sonarsource.com/t/545-is-not-a-valid-line-for-pointer-file-yyy-sources-xxx-ac-rpgle-has-544-line-s/59898)

<div class="topic-metadata">

**Author:** [@smitak](https://community.sonarsource.com/u/smitak)\
**Replies:** 1\
**Last updated:** [March 16, 2022, 6:52pm UTC](https://community.sonarsource.com/t/545-is-not-a-valid-line-for-pointer-file-yyy-sources-xxx-ac-rpgle-has-544-line-s/59898 "2022-03-16T18:52:38Z")

</div>

Getting error while scanning the particular code. We have around 10K code but getting this error only for this particular one. What could be the root cause? @PraveenSelvaraj i believe you had already similar issue back…

---

## [RPG analysis status / roadmap](https://community.sonarsource.com/t/rpg-analysis-status-roadmap/46593)

<div class="topic-metadata">

**Author:** [@acalero](https://community.sonarsource.com/u/acalero)\
**Replies:** 1\
**Last updated:** [August 25, 2021, 7:49pm UTC](https://community.sonarsource.com/t/rpg-analysis-status-roadmap/46593 "2021-08-25T19:49:25Z")

</div>

Hi sonarsourcers! Could you please share with us the roadmap of the RPG plugin? There are no new rules covering new language best practices and according to our enterprise customers there are rules in Sonar Way profile …

---

## [SonarRPG in RDi](https://community.sonarsource.com/t/sonarrpg-in-rdi/12452)

<div class="topic-metadata">

**Author:** [@Nataraj\_SonarRPG](https://community.sonarsource.com/u/Nataraj_SonarRPG)\
**Replies:** 1\
**Last updated:** [August 12, 2019, 3:01pm UTC](https://community.sonarsource.com/t/sonarrpg-in-rdi/12452 "2019-08-12T15:01:32Z")

</div>

Can suggest how to use Sonar RPG in RDi IDE for AS/400 (IBMi) RPGLE code. if anyone already using can you pls share your experience.
