Hi SQL novice here. I am trying to create a CTE in an embedded SQLRPGLE program. A couple of questions. Prior to the 'with' statement, do i need an EXEC SQL statement? Compiler doesn't seem to like that. Second question/issue: The compiler gives me the following error. Any insight into why?
73 with x as
======> a
*RNF5347 30 a 000700 An assignment operator is expected with the EVAL operation.
74 (select fmtdate(ahdcr,'YYMD','MDYY/') CREATE_DATE, ahshmt
75 SHIPMENT , ahstat STATUS
76 from mylib/ahasnf00 )
73 with x as
======> a
*RNF5347 30 a 000700 An assignment operator is expected with the EVAL operation.
74 (select fmtdate(ahdcr,'YYMD','MDYY/') CREATE_DATE, ahshmt
75 SHIPMENT , ahstat STATUS
76 from mylib/ahasnf00 )
Comment