|
message: 1
date: Mon, 08 Oct 2007 11:18:14 -0300
from: "Raul A. Jager W." <raul@xxxxxxxxxx>
subject: Re: Create table & Create Phisical File
Add the "FROM".
You can't select from an "EVI" index, but the others
options will allow
the select, but the output will not necesarily come
ordered, unless you
use "order by".
Wilt, Charles wrote:
You can't SELECT * IDXFILElogical file object, and you can normally do a
While the index IDXFILE is implemented as an i5/OS
SELECT * FROM MYLF, when MYLF is a DDS defined logical,the system does know there is a difference
between a DDS logical and an SQL index.physical file/table (or a view) on the
When using SQL you should _always_ specify the actual
statement. To provide ordering, add the ORDER BY clauseon your select statement.
Cezary Krzywda
HTH,
Charles
-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx
[mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of
Sent: Monday, October 08, 2007 10:39 AM
To: RPG programming on the AS400 / iSeries
Subject: RE: Create table & Create Phisical File
Table1 - PF
Next I prepare index using SQL
Create IDXFILE
CREATE INDEX Lib1/IDXFILE ON Lib1/Table1 (
S08FIR,OS08KLI,OS08GRPR,OS08IDX,OS08KODR,OS08DOS,OS08MT,OS08DATOD)specified
After that I run sql
Select * From IDXFILE
And I got errors
IDXFILE in Lib1 not table, view, or physical file.
Czarek
-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx
[mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of
matt.haas@xxxxxxxxxxx
Sent: Monday, October 08, 2007 4:26 PM
To: rpg400-l@xxxxxxxxxxxx
Subject: RE: Create table & Create Phisical File
What did you call the index? Is the library you
you got?during the create in you library list? What's the error
Cezary Krzywda
-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx
[mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of
logicalSent: Monday, October 08, 2007 10:25 AM
To: RPG programming on the AS400 / iSeries
Subject: RE: Create table & Create Phisical File
I have run
Select * From IDXFILE
And I had error ?
It seems that INDEX is not the same logical files .
I will try to use INDEX in RPG program
Czarek
-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx
[mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of
matt.haas@xxxxxxxxxxx
Sent: Monday, October 08, 2007 4:12 PM
To: rpg400-l@xxxxxxxxxxxx
Subject: RE: Create table & Create Phisical File
When you create an index, it can be used just like a
index youfile. All you have to do is specify the name of the
Cezary Krzywdacreated instead of the base table name in your F specs.
Matt
-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx
[mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of
usingSent: Monday, October 08, 2007 10:10 AM
To: RPG programming on the AS400 / iSeries
Subject: RE: Create table & Create Phisical File
So
How Can I use Setll , SetGT .? Should I create index
thisCREATE INDEX in SQL ? But the problem is How can I use
Wilt, Charlesindex in RPG ?
-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx
[mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of
unique?Sent: Monday, October 08, 2007 4:00 PM
To: RPG programming on the AS400 / iSeries
Subject: RE: Create table & Create Phisical File
Unique?
Then you can't have a key on the SQL table.
Sorry, but that's just the way it works.
Is there no combination of current fields that are
can
Even if KEY1,KEY2 aren't unique, if by adding KEY3 you
fieldget a unique key into the file, you can add
KEY3 without needing to change any existing programs.
The only other way would be to a an auto-incrementing
existingto the file, but that would require recompiling all
Cezary KrzywdaRPG programs.
HTH,
Charles
-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx
[mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of
Wilt, CharlesSent: Monday, October 08, 2007 9:57 AM
To: RPG programming on the AS400 / iSeries
Subject: RE: Create table & Create Phisical File
But fields are not uniqual
Pozdrawiam
Cezary Krzywda
Analityk, Dzia? Informatyki/
ICT Analyst, ICT Onninen Sp. z o.o.
Tel. +48 42 6768 877,
Mobile +48 502 19 77 61
Fax. +48 42 6768 800
Teolin 18B, Gmina Nowosolna,
92-701 ??D?
Poland
cezary.krzywda@xxxxxxxxxx
www.onninen.pl
-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx
[mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of
NULL.Sent: Monday, October 08, 2007 3:49 PM
To: RPG programming on the AS400 / iSeries
Subject: RE: Create table & Create Phisical File
Specify a PRIMARY KEY constraint.
Note: a primary key's field(s) must be unique and not
keyYou can't have an SQL defined table with a non-unique
Cezary Krzywdalike you can
with a DDS physical.
HTH,
Charles
-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx
[mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of
"K"Sent: Monday, October 08, 2007 6:59 AM
To: rpg400-l@xxxxxxxxxxxx
Subject: Create table & Create Phisical File
Hello
In DDS I can create key fields using record format
How Can I do it using SQL Create Table ?
Regards
Czarek
As an Amazon Associate we earn from qualifying purchases.
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.