Focal Point
MRE and -INCLUDEs

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

May 28, 2004, 07:26 PM
<Pietro De Santis>
MRE and -INCLUDEs
Hi,

Anyone else bothered by these annoying comments that get added when performing a -INCLUDE in a fex run inside MRE?


-SET &XDIM = DECODE A1 (
-* mrcgi -INCLUDE XXXR200
-* mrcgi include begin XXXR200
-0032JMDUMLAB
-0033JMDUMLAB
-0034JMDUMLAB
-0035JMDUMLAB

This is annoying because if you begin a DECODE statement and then do a -INCLUDE to include the decode values, you get an error because comments (and those weird lines) are inserted before the included code.

It appears this is occuring only when using Servlets, not when using the CGI call.

Any one know how to suppress this?

Regards,

Pietro.

This message has been edited. Last edited by: <Mabel>,
June 04, 2004, 04:53 PM
<monte2000>
Hi Pietro.

Can we see the original request which produced this? For example, HOW was the -INCLUDE coded originally?

Monica

Smiler
June 07, 2004, 02:14 PM
Susan Trommer
Pietro,
The purpose of the labels (32 of them) that are added by the WF Servlet during processing of MR requests that contain -INCLUDES are to flush the WF Server Table Services (core FOCUS) label cache. In Table Services it remembers (caches) the last 32 labels and this could potentially cause a conflict in the processing of the MR request navigating to the wrong label if the main MR FEX and any of the -INCLUDEd MR FEX(s)reference the same labels. This conflice would occur in the case of running a My Report based on a Reporting Object because of the processing involved to build the MR request for a My Report.
I've coordinated a project for Rel 53 (next new feature release due out end of summer 2004) to have this internal processing changed because of the significant offset to the line number reference for core FOCUS errors. I'm not aware of the DECODE problem you noted and that should be reported to Information Builders Customer Support with a reproduction so that IBI can evaluate it in both the release your using and with the changes in processing in Rel 53.
In Rel 53 each MR FEX will be written to the WF Server as a separate FEX maintaining its original FEX named stored in MR with the exception of a My Report where the My Report and the Reporting Object have the exact same FEX name. The FEX name is possible because the Reporting Object FEX and the My Report FEX are stored in two separate locations. I'm working with development to define a solution for this senario to insure uniqueness of all the FEX names that are run for the MR request. There will be documenation prepared for Rel 53 (Beta 3 of Rel 53 includes Managed Reporting) to inform customers of this change in MR request processing for WF Servlet, why it was done and explain the internals.
I hope this answers your question and please report your DECODE problem to IB Customer Support so that it can be investigated.
Regards,
Susan Trommer
Director WebFOCUS Product Management Operations
June 07, 2004, 05:18 PM
susannah
yes Pietro, but here's how i get around it.
Inside every one of my -include fexes, i do this:
-SET &HOLDECHO = &ECHO ;
-SET &ECHO = OFF ;
..do lots of stuff
-SET &ECHO = &HOLDECHO ;

and that very nicely stops all that.
You can do this inside each includable, or,
surrounding each call to an includable.
and the status of your echo setting is maintained.
June 07, 2004, 06:26 PM
<Pietro De Santis>
Susan and Susannah,

Thanks for your input.

I will report the DECODE problem to IBI.

Regards,

Pietro.
July 19, 2004, 02:27 PM
<kay hume>
Talking about -includes here, in the MRE where do you put the include.fex so that all users in all domains can get to it? Can someone tell me how to do that?
Thanks
Kay
July 19, 2004, 04:48 PM
Leah
For common code includes, we at UNO have been putting them under the MRE 'other files' section of the domain. Supposedly your app path should handle finding it anywhere, but that doesn't always seem to work.

We have a 'work around' for printing to our mainframe for example we have to put

-INCLUDE multrpt

at the end of the fex

So to ensure the multirpt is only touched by a domain administrator, it is stored/created under the other files section of the directory tree built by WebFOCUS for a domain.
July 19, 2004, 06:02 PM
reFOCUSing
If you want a file to be available to all the users and only have one copy, I would place the file on your WebFOCUS server somewhere on the EDAPATH. By doing this every user in any domain will be calling the same file. Placing the file on the server and not in the MRE will change your call to that file it will look something like this, -MRNOEDIT INCLUDE filename.fex