PDA

View Full Version : Embedded SQL with /FREE directive



Guest.Visitor
09-20-2002, 09:02 AM
Hi rchev. I have not played with embedded SQL in /free, but I have other things that did not lend themselves well (due to my ignorance, I'm sure) to the /free environment either. What I did was place them in a subroutine, which was not /free. Rather I did a '/end-free ' and then placed the subroutine after the /end-free. -Mean 1

Guest.Visitor
09-20-2002, 09:11 AM
I am trying to embed an SQL statement in an RPG program between the /FREE and /END-FREE directives. I receive the error 'Compiler directive not recognized; directive ignored.' when the lines are entered into the source member. Can SQL be embedded in free form code? If so, how?