Focal Point
[CLOSED] creating index on hold file for multiple column/Indexing multiple column

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/3707017416

December 23, 2011, 12:48 AM
MKS
[CLOSED] creating index on hold file for multiple column/Indexing multiple column
Hi,

can we index multiple column with below index on a hold file

ON TABLE HOLD AS HOLDFILE_123 FORMAT FOCUS INDEX COLUMN_1 COLUMN_2 COLUMN_3 COLUMN_4

I am not able to find it in documentation which I have.

Thank You
Sakeesh

This message has been edited. Last edited by: Kerry,


WebFocus 5.2.5
HP-UX(UNIX)
EXCEL, HTML, PDF and OLAP
December 23, 2011, 02:08 AM
Dan Satchell
Yes, multiple fields/columns can be indexed when holding output as a FOCUS file. I believe the limit is four index fields. There may also be a name length limit of 12 characters for indexed field names. The syntax of your sample statement is correct.


WebFOCUS 7.7.05
December 23, 2011, 10:46 AM
njsden
MKS, I don't know what the purpose of those indices is but just in case you are doing it so you can later JOIN to that FOCUS file, you can only do so using *one* field.



Prod/Dev: WF Server 8008/Win 2008 - WF Client 8008/Win 2008 - Dev. Studio: 8008/Windows 7 - DBMS: Oracle 11g Rel 2
Test: Dev. Studio 8008 /Windows 7 (Local) Output:HTML, EXL2K.
December 23, 2011, 03:02 PM
John_Edwards
Multiple index fields is news to me. If you need multiple index fields your best options are:

1. Create the table in a format other than FOCUS (write to an SQL*Server table, DB2, etc.)

2. Concatenate your several fields into a single text field via a DEFINE, and then index on that combined field. Field name 12 characters or less.

J.