|
Working as designed, per SQL standards. Good solution may be to SET SCHEMA FRDTPR before executing the statement. As for interactive SQL, same solution would work or CHGCURLIB FRDTPR. Elvis -----Original Message----- To: midrange-l@xxxxxxxxxxxx Subject: [SPAM] SQL question I have found that when using *SQL naming convention when using IBM's STRSQL, the SQL interpreter will not find a file by using the library list. Example - Here is the library list for my interactive job: Opt Library Type QSYS SYS QSYS2 SYS QHLPSYS SYS QUSRSYS SYS QSQL PRD QTEMP USR ENSHSC USR ENSDPR USR FRDTPR USR This SQL statement works just fine: SELECT * FROM FRDTPR.F01092 However, If I try this SQL statement (without qualifying the library name): Select * from F01092 I get the error message: F01092 in AUSLADTMP type *FILE not found. I don't have AUSLADTMP specified as my Current library. AUSLADTMP is my user profile name...why is interactive SQL assuming the file is in MY library? We get the exact same behavior when using a Java program with JDBC to execute the same SQL statement... Regards, Steve
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.