× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



As long as the key in the DDS described physical file was unique, a primary
key constraint with the original key fields can be added to the SQL table.
This new table can be read with the primary key constraint keys from native
I/O.

Mit freundlichen Grüßen / Best regards

Birgitta Hauser

"Shoot for the moon, even if you miss, you'll land among the stars." (Les
Brown)
"If you think education is expensive, try ignorance." (Derek Bok)
"What is worse than training your staff and losing them? Not training them
and keeping them!"


-----Ursprüngliche Nachricht-----
Von: midrange-l-bounces@xxxxxxxxxxxx
[mailto:midrange-l-bounces@xxxxxxxxxxxx] Im Auftrag von Mark S. Waterbury
Gesendet: Friday, 06. August 2010 20:14
An: Midrange Systems Technical Discussion
Betreff: Re: convert dds to ddl

Hi, Crispin:

AFAIK, CREATE TABLE creates a physical file with only "arrival sequence"
(access path), so if you have a physical file that has keys, you cannot
create a direct equivalent with only a TABLE ...

You would have to create an SQL INDEX also, and so then, what would you
propose to do? Perhaps create the TABLE with a (slightly) different
name, and then create an SQL INDEX with the same name as the original
"keyed" physical file?

Would not that be the same as the previously suggested approach of
creating a Logical File with the same name as the original file, and
that has the necessary keys also defined? Then, CRTLF will create the
logical file which will also have the correct (possibly shared) access
path associated with it.

Mark

On 8/6/2010 1:24 PM, Crispin Bates wrote:
As I said in my very first reply. At V5R4 you no longer need to replace
the
PF with an LF because the RCDFMT clause was added to CREATE TABLE...



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 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.