I have two questions about an RPGLE program with embedded SQL statements:
When compiling an RPGLE program with embedded SQL statements, how do you set the activation group?
I am trying to run a program which ran when we were on version 5V4. Now that I am on version 6.1, the exact same program will not run. Is there something different I have to do when compiling? My commitment control is set to *NONE.
Software/Hardware used:
AS400 V6.1
ASKED:
May 15, 2012 4:27 PM
UPDATED:
May 25, 2012 7:16 AM
What errors show in the job log (or program dump) when you try to run the program?
When compiling an RPGLE program with embedded SQL statements, how do you set the activation group?
WaltZ400′s answer is the best choice, but it’s not always possible. If you can’t place the directives in the source, you can use the CRTSQLRPGI COMPILEOPT() parameter:
COMPILEOPT('DftActGrp(*No) ActGrp(myactgrp)')That parameter is used by the SQL precompiler to pass parms into the RPG compile.
Now that I am on version 6.1, the exact same program will not run. Is there something different I have to do when compiling?
Probably.
But unless you tell us something about what happens, we have no way of guessing what should be done differently.
Tom
Since we migrated to OS 7.1, if you compile program CRTSQLRPGI that has a OVRDBF using QCMDEXC on the SQL declare cursor file, it does not recognize the file over ride. It does not error, just will not take the over ride. Is this happening for others and how do we resolve this?