|
----- Message from Steve Richter <stephenrichter@xxxxxxxxx> on Thu,you
6 Jul 2017 06:29:15 -0400 -----
To:
Midrange Systems Technical Discussion <midrange-l@xxxxxxxxxxxx>
Subject:
Re: create view in current schema
Just so I understand, SQL naming is a waste of time. With SQL naming
only work in one schema at a time. Unless you qualify your references.schema
When creating a view the unqualified specified database objects areresolved
from either the library list (System Naming) or the current/default
is(SQL Naming).
I am finding that once you "SET SCHEMA" the code runs as if SQL naming
in effect. All unqualified references look in the current schema only.first
If the view itself is not qualified it is created in the QGPL library(System Naming)
just to clarify, an unqualified view is created in the library of the
from file. Unqualified tables or routines are created in the currentlibrary.
library.
So, you need to qualify.
which is a real pain in the neck. How to code a CL procedure that will
setup a test environment when multiple libraries are being used?
I have an INFOR production data library. And an INFOR test data
Then a production library which contains custom written programs, viewsand
even data tables. The code that creates a view is stored in a sourceVIEW
member and is run using the RUNSQLSTM command. That create view code
qualifies the view being created to place it in the production custom
library.
Now to create a custom test library I would like to run each of CREATE
statements. But I cannot because the view name is qualified to thecustom
production library.list
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) digest
To post a message email: MIDRANGE-L@xxxxxxxxxxxxquestions.
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-l.
Please contact support@xxxxxxxxxxxx for any subscription related
link:
Help support midrange.com by shopping at amazon.com with our affiliate
http://amzn.to/2dEadiD
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.