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     [SOLVED] how to run a dynamically created fex

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] how to run a dynamically created fex
 Login/Join
 
Platinum Member
posted
Hi Everyone

I am using DM to dynamically create a fex but I cannot figure out how to run it afterwards.

Here is a simple example.

-SET &FILEDEF='D:\IBI\APPS\TEST\MYFEX2.FEX (APPEND';
FILEDEF MYFEX2 DISK &FILEDEF
-RUN
-WRITE MYFEX2 TABLE FILE CAR
-WRITE MYFEX2 SUM SALES
-WRITE MYFEX2 BY MODEL
-WRITE MYFEX2 END
-RUN

-*does not work...
-INCLUDE MYFEX2.FEX

-*does not work...
EX MYFEX2.FEX

This gives me a file called "D:\IBI\APPS\TEST\MYFEX2.FEX" and the
contents of it are

TABLE FILE CAR
SUM SALES
BY MODEL
END

The problem is... how can I run this once I created it on the fly like that? The include and ex lines do not work (ERROR: ERROR_MR_NO_OPEN can't open MYFEX2.fex). The reason I need this is that the contents of the file are extremely dynamic. I know I can work around this with tons of amper variables and goto branching, but this would be the easiest way. Anybody know how to run dynamically generated code like that?

Thanks

Jodye

This message has been edited. Last edited by: Kerry,
 
Posts: 246 | Location: Montreal, QC, Canada | Registered: October 01, 2003Report This Post
Guru
posted Hide Post
I can't try it right now, but first of all issue a FILEDEF MYFEX2 CLEAR. Provided the directory test is in the APP PATH it should work with the following:

-mrnoedit EX MYFEX2 (or -INCLUDE MYFEX2)
 
Posts: 319 | Location: Stockholm, Sweden | Registered: February 04, 2004Report This Post
Expert
posted Hide Post
This works, you need to close the file, and you don't need to allocate to a specific directory:

FILEDEF MYFEX2 DISK MYFEX2.FEX
-RUN

-WRITE MYFEX2 TABLE FILE CAR
-WRITE MYFEX2 PRINT *
-WRITE MYFEX2 END

-CLOSE MYFEX2

-INCLUDE MYFEX2
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Platinum Member
posted Hide Post
Hi Guys

Thanks a million. The -MRNOEDIT works perfectly. And I will close the file.

Jodye
 
Posts: 246 | Location: Montreal, QC, Canada | Registered: October 01, 2003Report This Post
Expert
posted Hide Post
Smiler Thanks All... This is still worthwhile and relevant today. - Doug
 
Posts: 3132 | Location: Tennessee, Nashville area | Registered: February 23, 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     [SOLVED] how to run a dynamically created fex

Copyright © 1996-2020 Information Builders