You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 26, 2026. It is now read-only.
In a free-form definition, the file-name and format-name parameters must be character literals or named constants representing character literals. If a parameter is a named constant, the constant must be defined prior to the definition statement.
In a fixed-form definition, the file-name and format-name parameters can be either names or character literals.
Source Orbit doesn't handle this distinction correctly; it uses the "fixed-form definition" semantics even in free-form definitions.
diff --git a/qrpglesrc/depts.pgm.sqlrpgle b/qrpglesrc/depts.pgm.sqlrpgle
index 37b5f5c..7deb695 100755
--- a/qrpglesrc/depts.pgm.sqlrpgle+++ b/qrpglesrc/depts.pgm.sqlrpgle@@ -54,7 +54,8 @@
*
Dcl-S Index Int(5);
- Dcl-Ds Department ExtName('DEPARTMENT') Alias Qualified;+ Dcl-S C_Department 'DEPARTMENT';+ Dcl-Ds Department ExtName(C_Department) Alias Qualified;
End-Ds;
so -- This now outputs:
qrpglesrc/depts.pgm.sqlrpgle:57 - No object found for reference 'C_DEPARTMENT'
It's interpreting C_DEPARTMENT as the file name, instead of as a constant name that needs to be looked up and resolved, yielding DEPARTMENT as the file name.