Q
Evaluate Weigh the pros and cons of technologies, products and projects you are considering.

Access a DDM file

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)

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.

-ADS BY GOOGLE

SearchDataCenter

Close