Focal Point
[SOLVED] (FOC002) A WORD IS NOT RECOGNIZED: INDEX

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

September 28, 2017, 03:34 PM
Genius
[SOLVED] (FOC002) A WORD IS NOT RECOGNIZED: INDEX
hi,

I am trying to add index on table file TXTMKT but getting weeoe as below

(FOC002) A WORD IS NOT RECOGNIZED: INDEX
BYPASSING TO END OF COMMAND
(FOC009) INCOMPLETE REQUEST STATEMENT


CODE:

TABLE FILE TXTMKT
PRINT *
BY MARKET_CODE
ON TABLE HOLD AS J1 FORMAT FOUCS INDEX MARKET_CODE
END
-RUN


Thanks for help

This message has been edited. Last edited by: FP Mod Chuck,


WebFOCUS, Linux
Excel, CSV
September 28, 2017, 03:37 PM
FP Mod Chuck
Hi Genius

You missspelled FOCUS in the ON TABLE HOLD line.


Thank you for using Focal Point!

Chuck Wolff - Focal Point Moderator
WebFOCUS 7x and 8x, Windows, Linux All output Formats
September 28, 2017, 04:06 PM
Genius
hey chuck,

thanks a lot for ur help, actually its still giving me below error
(FOC1354) ACCESS FILE RECORD ABSENT, WRONG OR INCOMPLETE FOR SEGMENT : txtmkt

i already have .acx and .mass files at the location but still its not able to find txtnkt segment access.

Thanks for help

My .acx is as below

SEGNAME = TXTMKT,TABLENAME=MARKET,
KEYS= 1,
WRITE = NO,$


WebFOCUS, Linux
Excel, CSV
September 28, 2017, 04:17 PM
FP Mod Chuck
Genius

What is the actual name of the .mas and .acx?
Based on the acx file it appears the table name is MARKET not TXTMKT so I think you should be using
TABLE FILE MARKET


Thank you for using Focal Point!

Chuck Wolff - Focal Point Moderator
WebFOCUS 7x and 8x, Windows, Linux All output Formats
September 28, 2017, 04:18 PM
Francis Mariani
"FOUCS"... ".mass"... "txtnkt"... Genius? It's a good idea to be precise - this is a technical support forum.

The metadata files (acx and mas) need to be in a folder in the application path.

Run the following commands to ensure that your program can find the metadata. The WHENCE command will search the application path and tell you the first folder that the metadata files are found in.

WHENCE TXTMKT MASTER
WHENCE TXTMKT ACCESS



Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
September 28, 2017, 04:33 PM
Genius
Hi chuck,

.acx amd .mas file names are txtmkt.acx and txtmkt.mas and table name is MARKET so we defined SEGNAME = TXTMKT

I have both the files in application path only and fex file is also at same location.


WebFOCUS, Linux
Excel, CSV
September 29, 2017, 10:14 AM
FP Mod Chuck
Genius

Make sure the app folder that the tktmkt.mas and acx files are in the APP PATH defined on the reporting server. You can also specifically set APP PATH in your fex

APP PATH foldername

where foldername is the name of the directory the files are in.


Thank you for using Focal Point!

Chuck Wolff - Focal Point Moderator
WebFOCUS 7x and 8x, Windows, Linux All output Formats
September 29, 2017, 12:46 PM
Genius
Hi chuck,


i tried setting the app path to files directory but still it could not find .acx file
Is it correct way :

-SET APP PATH /dbl_sh_unc/fs_users/oprtub01/users

Or i did something wrong here

thanks
shweta


WebFOCUS, Linux
Excel, CSV
September 29, 2017, 12:54 PM
FP Mod Chuck
Shweta

The problem is that your .mas and .acx files are not under the ../ibi/apps directory structure. You have two options you can move them under a directory under the ../ibi/apps structure or you can use the following commands to map to where they are currently

APP MAP users /dbl_sh_unc/fs_users/oprtub01/users
APP PATH users


Thank you for using Focal Point!

Chuck Wolff - Focal Point Moderator
WebFOCUS 7x and 8x, Windows, Linux All output Formats
October 01, 2017, 12:18 AM
j.gross
quote:

-SET APP PATH /dbl_sh_unc/fs_users/oprtub01/users


@Genius: You've been posting for a while. By this time you should know the difference between SET and -SET. And BTW, APP PATH is neither.
October 04, 2017, 08:31 AM
Tamra
Genius,
Let us know if your question has been resolved.

If it has or when it has been answered we ask that you mark the subject line with the appropriate Key Words

Thank you for participating in the Focal Point Forum!
Tamra Colangelo
Focal Point Moderator
Information Builders


WebFOCUS 8x - BI Portal, Developer Studio, App Studio, Excel, PDF, Active Formats and HTML5