What is the best way to access a DDM file in an embedded RPG ILE SQL module within a service program -- as if it were looking in a local database location?
This RPG ILE SQL module was created using all the defaults of a local iSeries system/database (V5R2). However, now the application in which this module runs is on a remote iSeries (V5R2). SQL error SQL7001 is received stating that the file being accessed is not a database file (i.e. a DDM file).
Is there an easy way to change the DDM file or SQL ILE module or the service program to point to the correct target file on the remote system without upsetting the application program logic?
DDM is not supported by SQL. You'll have to look at using the DRDA support -- look into the remote database options on the RPG SQL Precompiler.
MORE INFORMATION ON THIS TOPIC
Search400.com's targeted search engine: Get relevant information on DB2/400.
The Best Web Links: tips, tutorials and more.
Check out this Search400.com Featured Topic: Database issues resolved
Dig Deeper on DB2 UDB (universal databases)
Related Q&A from Kent Milligan
When working with DB2 files with columns that have both short and long names, there is no option choose which column names are returned via ODBC ... Continue Reading
When developing tables in a parent-child relationship, use a primary key and a foreign key along with a unique ID to make your database easier to ... Continue Reading
IBM did not change the default of the reuse deleted files function to YES for physical files in order to minimize the impact on any existing ... Continue Reading
Have a question for an expert?
Please add a title for your question
Get answers from a TechTarget expert on whatever's puzzling you.