iiSiggi
iiSiggi

Reputation: 175

Is there a way to compile with crtsqlrpgle without using QTEMP/QSQLPRE?

The process to create an object from a SQLRPGLE source member is a multi-step process:

  1. The syntax of the SQL within the source member is checked to ensure it is valid.
  2. A copy of the source member being compiled is moved to a source file QSQLPRE in QTEMP.
  3. The SQL statements in the source member are converted to calls and the new source member is placed in the source file QSQLTEMP1 in QTEMP, as a RPGLE source type.
  4. It is this source member that is compiled.

If step 2 of the proccess fails, RNF0733 is thrown. Is there any way to avoid this?

Upvotes: 0

Views: 632

Answers (1)

iiSiggi
iiSiggi

Reputation: 175

I solved this with this additional commands in my Makefile:

  1. system "dltObj LIB/compile objType(*FILE)"
  2. system "crtSrcPf LIB/compile rcdLen(250)"
  3. system "cpyFrmStmF fromStmF('$<') toMbr('/QSYS.LIB/LIB.LIB/COMPILE.FILE/[email protected]')"

Upvotes: 1

Related Questions