Hi all,
In one of our application, a program on a PC server calls a RPG program on our iSeries via an ODBC driver connection. The RPG program is performing dynamic SQL on the iSeries database.
It seems that the SQL Path used by the RPG program is initiated by the ODBC settings on the PC server. We want the program to run correctly whatever the SQL PATH initiated in ODBC connection settings are.
So with have to reset the SQL Path in our RPG program. But I couldn?t manage that : I?ve tried such programs lines :
1)
C/Exec Sql SET CURRENT PATH = *LIBL
C/End-Exec
2)
C/Exec Sql SET PATH = *LIBL
C/End-Exec
But neither of them seems to be working. SQLCOD 204 each time?
Does anyone have any idea to help me?
Pat
In one of our application, a program on a PC server calls a RPG program on our iSeries via an ODBC driver connection. The RPG program is performing dynamic SQL on the iSeries database.
It seems that the SQL Path used by the RPG program is initiated by the ODBC settings on the PC server. We want the program to run correctly whatever the SQL PATH initiated in ODBC connection settings are.
So with have to reset the SQL Path in our RPG program. But I couldn?t manage that : I?ve tried such programs lines :
1)
C/Exec Sql SET CURRENT PATH = *LIBL
C/End-Exec
2)
C/Exec Sql SET PATH = *LIBL
C/End-Exec
But neither of them seems to be working. SQLCOD 204 each time?
Does anyone have any idea to help me?
Pat
Comment