× 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.



the source for the DTAWHS is this
CREATE TABLE PROJ_MKWN1/DTAWHS (
CUSTOMER# CHAR ( 8),
NAME CHAR (40 ),
CITY CHAR (30 ),
STATE CHAR (3 ),
COUNTRY CHAR (3 ),
ZIP_CODE char (10 ),
ITEM# CHAR (15 ),
ITEM_TEXT CHAR (40 ),
ORDER# CHAR (8 ),
ORD_STATUS CHAR (2 ),
INVOICE# CHAR (8 ),
ORD_DATE NUMERIC (8 , 0),
INV_DATE numeric (8 , 0),
ORD_TYPE CHAR (3 ),
CUST_TYPE CHAR (3 ),
PROD_LINE CHAR (3 ),
SALES_REP CHAR (3 ),
WAREHOUSE CHAR (3 ),


On Thu, Jan 30, 2014 at 5:43 PM, Hoteltravelfundotcom <
hoteltravelfun@xxxxxxxxx> wrote:

here is the official info on this file. Note that in the DDS it is has a
TYPE of TXT, yet, on an Library level view, it has an attribute of PF.



File . . . . . .
QDDSSRC

Library . . . . PROJ_MKWN1 Position to . . . .
.




Type options, press
Enter.

2=Edit 3=Copy 4=Delete 5=Display 6=Print
7=Rename

8=Display description 9=Save 13=Change text 14=Compile 15=Create
module...




Opt Member Type Text


DATAWHS_PT LF Part #
logical

DTAWHS TXT Create Table - SQL
Statement

SADTAW1F PF SA OutPut-Name/Add/Address (Ted
File)

SADTAW1FX PF SA OutPut-Name/Add/Address (Ted
File)









CMKWNDTW *PGM CLLE 90112 Clear and Add to
DTAW

MKWNDTW *PGM RPGLE 487424 SA Detail File
Build

CSUBINV4 *PGM CLLE 102400 SA Ext Rpt: Inv &
Mis

SUBINV3 *PGM RPGLE 1200128 Make Inv Dates
One-Ye

DATA_WHSV3 *FILE LF
65536

* DTAWHS *FILE PF
1210241024 *

DTAWHST *FILE PF
53248

QCLSRC *FILE PF 118784 CL Source
File

QDDSSRC *FILE PF 106496 DDS Source
File

QRPGLESRC *FILE PF 405504 RPGLE Source
File


On Thu, Jan 30, 2014 at 3:00 PM, Vernon Hamberg <vhamberg@xxxxxxxxxxxxxxx>wrote:

A little more - there is no such thing as an index on an object (stream
file, actually) in the IFS.

A possible exception to that statement is if you use Omnifind, which can
take the contents of a stream file and make it searchable just as in
Google.

That is a no-charge product on IBM i in more current releases, and there
are ways to use it in SQL.

Vern

On 1/30/2014 12:28 PM, Hoteltravelfundotcom wrote:
the file is created on the i
as a 'txt' not PF.

I need to have some index on it,


On Thu, Jan 30, 2014 at 1:14 PM, Vernon Hamberg <
vhamberg@xxxxxxxxxxxxxxx>wrote:

Actually it is not DB2 that has this restriction = it is the SQL
standard that does not allow CREATE INDEX over a view. And I'm not sure
if CREATE INDEX can be done over a PF that does not have DDS source -
CRTPF with RCDLEN only.

HTF.COM - when you say 'txt', are you speaking of a text file in the
IFS
or of a file member of type TXT - that'd have to be a source file, I
think.

You can't do anything directly with SQL views or LFs over IFS files -
as
Gary says, you create a DDS file - and I'll add, CREATE TABLE in SQL
can
do the same.

I have to say, I think the terms you are using are mixed up - so please
clarify whether IFS or source files or whatever you are looking at.

Thanks
Vern

On 1/30/2014 11:49 AM, Gary Thompson wrote:
DB2 does not provide a way to "index" a view.
You could copy/convert the .txt file to a dds file that is keyed.

-----Original Message-----
From: midrange-l-bounces@xxxxxxxxxxxx [mailto:
midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of Hoteltravelfundotcom
Sent: Thursday, January 30, 2014 10:47 AM
To: Midrange Systems Technical Discussion
Subject: how to make a key on a view?

i HAVE A file that is 'txt' not PF. Can I make a logical DDS LF on
that?
if not, how can I make an key index on a view?
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing
list To post a message email: MIDRANGE-L@xxxxxxxxxxxx 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.
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing
list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
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.



--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing
list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
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.




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.