1

I have lots of SQLRPGLE programs that I have to compile with OPTION(*SQL). 99% of the time I forget to set that value at compilation time, so I tried to add this parameter value inside H SPECS. Unfortunately it doesn't seem to be any option to set that value in order to properly compile the source code without setting it manually every time. Any help is really appreciated , Giovanni

1 Answer 1

3

run the statement exec sql set option naming = *sql at the start of the program. That will set the naming convention of the program.

 /free                                   
      exec sql SET OPTION naming = *sql ;

      exec sql                           
      declare c1 cursor for              
      select      srcseq, srcdta         
      from        qgpl.qrpglesrc ;       

a good article on using SQL options

Sign up to request clarification or add additional context in comments.

1 Comment

Should be noted that SET OPTION is actually a compile time statement and must be physically the first SQL statement in the source file.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.