SQL0312 Variable &1 not defined or not usable.
What variable?
You probably used a different compile command between the two programs.
Check RPGPPOPT(*LVL2) or the Date/time options.
Chris Hiebert
Senior Programmer/Analyst
Disclaimer: Any views or opinions presented are solely those of the author and do not necessarily represent those of the company.
From: RPG400-L <rpg400-l-bounces@xxxxxxxxxxxxxxxxxx> On Behalf Of dfreinkel@xxxxxxxxxxxxxxxxx
Sent: Tuesday, August 9, 2022 7:40 AM
To: 'RPG programming on IBM i' <rpg400-l@xxxxxxxxxxxxxxxxxx>
Subject: SQL0312 - in RPG compile.
I need help with this one.
I have a program that worked for about a month. I renamed the RPG program
and display file, changing only the member names and therefor the program
names. No record formats were renamed. I did change the display file name in
the RPG program.
After renaming, the SQL precompiler fails with SQL0312.
I do not see a difference between the previous names and the renamed names
that should trigger the SQL0312.
Has anyone experienced this problem before and how did you resolve it?
TIA.
Darryl Freinkel
A4G
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact
[javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.