Problem solve Get help with specific problems with your technologies, process and projects.

Is the SQL Path being used?

I am running interactive SQL (STRSQL) on iSeries at V5R1 set path a73dta2 PATH statement complete.
 select imlitm                       
     from f4101                       
     FETCH FIRST 10 ROWS ONLY         
  F4101 in *LIBL type *FILE not found. 
> select imlitm                   
     from a73dta2/f4101           
  SELECT statement run complete. 

It seems the iSeries is not using the PATH, except for "The SQL path is an ordered list of schema names. The database...

manager uses the path to resolve the schema name for unqualified distinct type names (both built-in types and distinct types), function names, and procedure names..."

Can you see from this what I am missing?

Yes, the SQL Path is not used for unqualified table names. The SQL Path is only used by DB2 when you have an unqualified procedure or function name in an SQL statement.

If you're at V5R2 or V5R3, you can use the SET SCHEMA statement for unqualified view & table names. Another alternative is using the *SYS SQL Naming option which uses the OS/400 library list to search for unqualified table & view names.


Visit the ITKnowledge Exchange and get answers to your DB2 questions fast.

Check out this Search400.com Featured Topic: Expert advice on DB2

Search400.com's targeted search engine: Get relevant information on DB2/400.

The Best Web Links: Tips, tutorials and more.

This was last published in January 2005

Dig Deeper on Oracle on iSeries

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.



  • How do I size a UPS unit?

    Your data center UPS sizing needs are dependent on a variety of factors. Develop configurations and determine the estimated UPS ...

  • How to enhance FTP server security

    If you still use FTP servers in your organization, use IP address whitelists, login restrictions and data encryption -- and just ...

  • 3 ways to approach cloud bursting

    With different cloud bursting techniques and tools from Amazon, Zerto, VMware and Oracle, admins can bolster cloud connections ...