We help IT Professionals succeed at work.

We've partnered with Certified Experts, Carl Webster and Richard Faulkner, to bring you two Citrix podcasts. Learn about 2020 trends and get answers to your biggest Citrix questions!Listen Now


Refer to non-standard filename in AS400 SQLRPGLE program

jfvon asked
Medium Priority
Last Modified: 2012-05-06
I would like to use an imbedded SQL statement within an AS400 SQLRPGLE program to retireve select records from a file that is named "Y.DPRMAS".  I continue to receive error message that "Object Qualified Name DPRMAS  not valid".  I was wondering if someone can give me an example of how to select records from a file with this naming convention?
Watch Question

VP Technology / Senior Consultant
A few of ideas:

1) Switch the naming convention to *SYS from *SQL.  *SYS uses the "/" as a delimeter instead of the "." used by *SQL
2) Create an alias for the file (CREATE ALIAS), and use the alias.  You may run into the same delimeter issue, though.
3) Create a logical file over the file with a conforming name, and query the logical file.

- Gary Patterson

Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts
Also, maybe try [select xxx from library."Y.DPRMAS"]. Quoting the name is sometimes successful.



Thanks to both of you for your excellent suggestions.  I found that Gary's solution is elegant because it is simple enough for someone like me to use.  Creating the LF did the trick.
Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.


Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.