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     [CLOSED] -INCLUDE &FILENAME returns error on &FILENAME

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] -INCLUDE &FILENAME returns error on &FILENAME
 Login/Join
 
<NorthNone>
posted
-INCLUDE &FILENAME
results in (FOC227) THE FOCEXEC PROCEDURE CANNOT BE FOUND: &FILENAME
The file to be included can vary depending on other factors and is set as the fex executes. The file name is stored in &FILENAME. When the main FEX executes, it immediately says that it cannot find &FILENAME, then continues to execute.
I tried setting &FILENAME to ' ' or to an existing file name, but neither fixed it.
Assistance greatly appreciated. Thanks for taking time to read this...

This message has been edited. Last edited by: Kerry,
 
Report This Post
<Pietro De Santis>
posted
This should work - I've got it in quite a few Fexes.

Are you in MRE?

What version of WebFOCUS?
 
Report This Post
Guru
posted Hide Post
I got the same results as you did, but only by accident. When the fex called with the
-INCLUDE &FILENAME, also had a variable called &FILENAME inside it, I got the same error message you got. When I changed the variable to &FILEN, the include worked.
 
Posts: 391 | Location: California | Registered: April 14, 2003Report This Post
<NorthNone>
posted
Thanks for making suggestions. I appreciate your time. Unfortunately my problem persists.
-I checked the included fex represented by &FILENAME and it did not use the variable &FILENAME.
-We just installed, so we are on a recent version (5.2.6). It says "Managed Reporting Repository" at the top of the screen.
--------------------------------------
If I do a simple fex
(with or without the 'RUN's):
-SET &THISFILE = WINMISC;
-RUN
-INCLUDE &THISFILE
-RUN
I get a similar message:
(FOC227) THE FOCEXEC PROCEDURE CANNOT BE FOUND: &THISFILE
Assistance, ideas, and brain-storming gratefully received :-)
If all else fails, I may just have to put in a comment not to worry about this since it runs correctly despite the message.
 
Report This Post
Guru
posted Hide Post
Have you tried -MRNOEDIT -INCLUDE &THISFILE
 
Posts: 391 | Location: California | Registered: April 14, 2003Report This Post
Expert
posted Hide Post
I got around this problem
-SET &FILENAME = 'TIMESTMP';
-SET &FILEPHRASE = '-INCLUDE ' | &FILENAME ;
&FILEPHRASE.EVAL
works like a charm
 
Posts: 3811 | Location: Manhattan | Registered: October 28, 2003Report This Post
<NorthNone>
posted
THANK YOU, SUSANNAH!
Indeed it worked like a charm!
 
Report This Post
Expert
posted Hide Post
quote:
works like a charm
Did something break in WebFOCUS in the past 9 years (lol)?

The following 3 lines don't work (anymore):
-SET &FILENAME = 'TIMESTMP';
-SET &FILEPHRASE = '-INCLUDE ' | &FILENAME ;
&FILEPHRASE.EVAL
Yes, I have a fully functional "TIMESTAMP" fex which is nothing more then a -TYPE statement. It even works well as "-INCLUDE TIMESTAMP" but not via the variable. What's up with that?

The Bottom Line: I want to execute a variable as "&IncludeThis.EVAL". Where '&IncludeThis" is the results of "-SET &IncludeThis = '-INCLUDE TIMESTAMP' ; ". But, it's not working... Thanks In Advance...




   In FOCUS Since 1983 ~ from FOCUS to WebFOCUS.
   Current: WebFOCUS Administrator at FIS Worldpay | 8204, 8206
 
Posts: 3132 | Location: Tennessee, Nashville area | Registered: February 23, 2005Report This Post
Expert
posted Hide Post
Doug,
Is the FEX in your path? If not, put the folder and / ahead of the fex...

This works fine:

  
-SET &FILENAME = '1_get_lrecl.fex';
-SET &FILEPHRASE = '-INCLUDE ' | '&FILENAME.EVAL' ;
&FILEPHRASE.EVAL
-EXIT


Tom Flynn
WebFOCUS 8.1.05 - PROD/QA
DB2 - AS400 - Mainframe
 
Posts: 1972 | Location: Centennial, CO | Registered: January 31, 2006Report This Post
Expert
posted Hide Post
Yep, everything is in the same MRE Domain / folder...
For simplicity of explanation, I changed it to the following:

The fex to be "-INCLUDEd" is "CALENDAR_TEST1.FEX".

The execution of "CALENDAR_TEST1" executes "CALENDAR_TEST1.FEX" correctly. Smiler

The "-INCLUDE CALENDAR_TEST1" command executes "CALENDAR_TEST1.FEX" correctly. Smiler

The following three lines of code produces the "(FOC227) THE FOCEXEC PROCEDURE CANNOT BE FOUND: CALENDAR_TEST1" Error. Frowner
-SET &FILENAME = 'CALENDAR_TEST1';
-SET &FILEPHRASE = '-INCLUDE ' | &FILENAME ;
&FILEPHRASE.EVAL
Frowner
 
Posts: 3132 | Location: Tennessee, Nashville area | Registered: February 23, 2005Report This Post
Expert
posted Hide Post
Well, guess something changed in MRE.
Did you try my example, with quotes and .EVAL?

-SET &FILEPHRASE = '-INCLUDE ' | '&FILENAME.EVAL' ;

AND, since you're in MRE, how about:

-MRNOEDIT &FILEPHRASE.EVAL


Tom Flynn
WebFOCUS 8.1.05 - PROD/QA
DB2 - AS400 - Mainframe
 
Posts: 1972 | Location: Centennial, CO | Registered: January 31, 2006Report This Post
Expert
posted Hide Post
Tried 'em all... to no avail... NFR? WF8?
 
Posts: 3132 | Location: Tennessee, Nashville area | Registered: February 23, 2005Report This Post
Expert
posted Hide Post
I broke it now... DS Just "CLOSED" on me...

What a way to end a week Frowner
 
Posts: 3132 | Location: Tennessee, Nashville area | Registered: February 23, 2005Report This Post
Expert
posted Hide Post
Music I'll resort to using -GOTO REPORT&ReportID.EVAL for each report (based on an incoming Report ID) and generate my report between that label and a -GOTO EndOfReport / -EndOfReport label for now, with hopes of getting this to work as I'd like it.
 
Posts: 3132 | Location: Tennessee, Nashville area | Registered: February 23, 2005Report This Post
Member
posted Hide Post
Hey Doug, this is wayne, and what you need is quite often what I find in all these new versions, or flavors of WebFOCUS. It's called an OFR, "Old Feature Request"

Sure there are work arounds and probably 20 ways to do what you're trying to do, but I also find that there are things which simply don't work with 8.0 as we expect!

Please IBI, let's keep it simple for us old guys and if there is something that doesn't work as it used to, can we be handed the alternative rather than hacking away.

(I'm not just talking or complaining, these subtle issues will begin to grow in number, and having the "New Alternative" would simply help all developers and ultimately IBI sell more software as we are the soldiers in the field)

Example: Old School: Filedef
New School: Foccache

I'm just saying... Music


8.01m RedHat Linux HTML/PDF/EXCEL
 
Posts: 10 | Location: United States | Registered: January 29, 2008Report This Post
Virtuoso
posted Hide Post
quote:
Originally posted by Doug:
Yep, everything is in the same MRE Domain / folder...


Hey, Doug.

If you mean both the fexes (that calling CALENDAR_TEST1, and CALENDAR_TEST1 itself) are stored in MR, not in an APP folder on the reporting server, then the FOC227 is entirely appropriate.


- Jack Gross
WF through 8.1.05
 
Posts: 1925 | Location: NYC | In FOCUS since 1983 | Registered: January 11, 2005Report This Post
Expert
posted Hide Post
Doug,

The syntax suggested by Tom works perfectly and (to my knowledge) hasn't "broken".

Just a few reminders :-

If the included fex is within an application folder it should be within the available APP PATH AND included with the -MRNOEDIT syntax. By "available APP PATH" I mean the path specified in the Domain properties (if there is one) or the current APP PATH setting.

If the included fex is within MR then it must exist in one of the folders under the main domain folder (normally [domain]/app) and must be referenced within that folder - e.g. -INCLUDE app/fex_file_name.fex.

T



In FOCUS
since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2  
WebFOCUS App Studio 8.2.06 standalone on Windows 10 
 
Posts: 5694 | Location: United Kingdom | Registered: April 08, 2004Report This Post
Virtuoso
posted Hide Post
quote:
Originally posted by Tony A:
Doug,

. . .

If the included fex is within MR then it must exist in one of the folders under the main domain folder (normally [domain]/app) and must be referenced within that folder - e.g. -INCLUDE app/fex_file_name.fex.

T


And the -INCLUDE must be hard-coded.

Managed Reporting's "client" piece does not execute -SET commands, and does not perform amper-variable substitution in FOCUS commands.
(As the current crop of GEICO radio adds might put it, "It can't. It doesn't have the brains.")

And Reporting Server, where those actions will take place, has no access to files stored in MR.

Which is what I alluded to in my previous post


- Jack Gross
WF through 8.1.05
 
Posts: 1925 | Location: NYC | In FOCUS since 1983 | Registered: January 11, 2005Report 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     [CLOSED] -INCLUDE &amp;FILENAME returns error on &amp;FILENAME

Copyright © 1996-2020 Information Builders