I found my dumb error but I am surprised the editor did not highlight the
error. The F-Spec was 1 character out of position after the file name and
that caused the issue.
Once adjusted it compiled normally.
Thank you.
Darryl Freinkel
A4G
Telephone: 770.321.8562 Mobile: 678.355.8562
-----Original Message-----
From: RPG400-L <rpg400-l-bounces@xxxxxxxxxxxxxxxxxx> On Behalf Of Hiebert,
Chris
Sent: Tuesday, August 9, 2022 10:11 AM
To: RPG programming on IBM i <rpg400-l@xxxxxxxxxxxxxxxxxx>
Subject: RE: SQL0312 - in RPG compile.
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
--
This is the RPG programming on IBM i (RPG400-L) mailing list To post a
message email: RPG400-L@xxxxxxxxxxxxxxxxxx To subscribe, unsubscribe, or
change list options,
visit:
https://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives at
https://archive.midrange.com/rpg400-l.
Please contact support@xxxxxxxxxxxxxxxxxxxx for any subscription related
questions.
Help support midrange.com by shopping at amazon.com with our affiliate link:
https://amazon.midrange.com
As an Amazon Associate we earn from qualifying purchases.