Focal Point Banner


As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only.

Join the TIBCO Community
TIBCO Community is a collaborative space for users to share knowledge and support one another in making the best use of TIBCO products and services. There are several TIBCO WebFOCUS resources in the community.

  • From the Home page, select Predict: WebFOCUS to view articles, questions, and trending articles.
  • Select Products from the top navigation bar, scroll, and then select the TIBCO WebFOCUS product page to view product overview, articles, and discussions.
  • Request access to the private WebFOCUS User Group (login required) to network with fellow members.

Former myibi community members should have received an email on 8/3/22 to activate their user accounts to join the community. Check your Spam folder for the email. Please get in touch with us at community@tibco.com for further assistance. Reference the community FAQ to learn more about the community.


Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     FOCUS error 1166 in FOCUS 7.1.1

Read-Only Read-Only Topic
Go
Search
Notify
Tools
FOCUS error 1166 in FOCUS 7.1.1
 Login/Join
 
Member
posted
What is the meaning of this FOCUS error in 7.1.1?

(FOC1166) CREATE FUNCTION NOT AVAILABLE FOR THIS
ENGINE

I suspect this to be something wrong with my focmaster. I never got this error before doing changes to focmaster.

Thanks in advance.
GP.
 
Posts: 15 | Location: Third Rock from Sun | Registered: August 04, 2005Report This Post
Expert
posted Hide Post
What is the suffix of your master file?
 
Posts: 5694 | Location: United Kingdom | Registered: April 08, 2004Report This Post
Member
posted Hide Post
SUFFIX=FIX
 
Posts: 15 | Location: Third Rock from Sun | Registered: August 04, 2005Report This Post
Expert
posted Hide Post
There's your problem then, you can't do a create file on SUFFIX=FIX. That is a flat file by any other name.

What are you trying to do? Sample code?
 
Posts: 5694 | Location: United Kingdom | Registered: April 08, 2004Report This Post
Expert
posted Hide Post
gppande, as tony says, you can't CREATE a fix file, but you dont really need to. you can certainly make one, and you don't need the verb CREATE.
you just need to filedef it and write it out.
FILEDEF MYFILE DISK D:\IBI\wherever\MYFILE.TXT
or .FTM
then write to it any number of ways
TABLE FILE CAR
PRINT something
ON TABLE HOLD AS MYFILE {FORMAT ALPHA}
.or you can use dialog manager
-WRITE MYFILE some &vars from your workspace
You can filedef it with (APPEND and write stuff out to the end of an existing one.
all kinds of stuff you can do. easy. agony free.
 
Posts: 3811 | Location: Manhattan | Registered: October 28, 2003Report This Post
Expert
posted Hide Post
Too true Susannah, but you can also filedef using the APP command -

APP FI MYFILE DISK [application]/filename.extn

or

APP FI MYFILE DISK [path]/filename.extn

and then write to it in all the ways you've mentioned including SAVE and SAVEB.

If you do not want to bother defining the file but wish to have the file deposited into an application folder you can also use -

APP HOLD [application]

If you only want the data, you would use -

APP HOLDDATA [application]

and if you only want the master -

APP HOLDMETA [application]
 
Posts: 5694 | Location: United Kingdom | Registered: April 08, 2004Report This Post
<Joseph Coule>
posted
quote:
Originally posted by gppande:
[qb] SUFFIX=FIX [/qb]
You've probably got a HOLD.MAS (HOLD MASTER) earlier in the path and then you're doing HOLD FORMAT FOCUS in your procedure. The procedure finds HOLD MASTER with suffix=fix earlier in the path somewhere and generates the error.

HOLD FORMAT FOCUS issues a CREATE FILE against the ddname (the filename) used in the HOLD procedure. If this is the case, simply use a different ASNAME in the HOLD FORMAT FOCUS (e.g., HOLD AS TEMP1 FORMAT FOCUS).

As Tony suggested, a short code sample would help clear things up.

JC
 
Report This Post
Member
posted Hide Post
Hi all,
Sorry for the delay. As Joseph said, I am creating a intermediate HOLD file with format FOCUS. It executes FOC$HOLD which is creating a file. I renamed it and all worked fine !!! Now the question is what is HOLD.MAS?

Thanks for all your help.

GP.
 
Posts: 15 | Location: Third Rock from Sun | Registered: August 04, 2005Report This Post
<Joseph Coule>
posted
quote:
Originally posted by gppande:
[qb]Now the question is what is HOLD.MAS?
[/qb]
HOLD.MAS is the master file description created for a temporary HOLD file. The name "HOLD" is the default, but you can call your hold file anything you like.

My guess is that there is a HOLD.MAS somewhere in your path on a non-writeable drive. When the FOC$HOLD procedure creates a new HOLD.MAS (with SUFFIX=FOC) it is not used in the load because WebFOCUS finds the other file first with SUFFIX=FIX (hence the FOC1166 error).

You could investigate this to see if the other HOLD.MAS file is needed by anyone or any program, and if not, then you could have it deleted. Or just use a different ASNAME (e.g., HOLD AS FRED FORMAT FOCUS).

Glad you got it running.

JC
 
Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     FOCUS error 1166 in FOCUS 7.1.1

Copyright © 1996-2020 Information Builders