Focal Point
[CLOSED] -Include &Report_Name

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

February 06, 2019, 01:22 PM
Mike Williams
[CLOSED] -Include &Report_Name
Curious if anyone has attempted something similar to this in v8+.

Francis had offered a method using GOTOs in the following Thread.

This thread -INCLUDE &RPT_NAME mentioned in Francis' post outlines the root of the problem.

quote:
It just does not work, because, according to this ancient posting, -INCLUDE &RPT_NAME, "the MRE Dialogue Manager processing is NOT the FULL D.M., but only provides variable substitution."

So, you could try this instead. It's tedious if you have a lot of programs and the program name must be 12 characters or less.

-SET &ECHO=ALL;

-TYPE HELLO FROM PROGRAM testing_program_1.fex - start of report

-DEFAULT &P_REPORT_FEX = 'test23';

-GOTO &P_REPORT_FEX.EVAL

-testaa
-INCLUDE testaa
-GOTO END_REP

-test23
-INCLUDE test23
-GOTO END_REP

-testpgm2
-INCLUDE testpgm2
-GOTO END_REP

-END_REP
-TYPE HELLO FROM PROGRAM testing_program_1.fex - End of report


If you program names are more than 12 characters, pass a short name as the GOTO label name and put the long name in the INCLUDE statement.

Very tedious, but it works.


But, even with this method using the same folder for the procedures I receive the "Error Cannot Include resource specified" response. Any input is very appreciated.

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


WF Version 8105
February 06, 2019, 02:35 PM
BabakNYC
Are these .fex's in the Repository or on an App folder? Have you tried a fully qualified path to them?


WebFOCUS 8206, Unix, Windows
February 07, 2019, 09:00 AM
Mike Williams
Should be the repository. Had attempted to concatenate the path with with -include as a variable, but to no avail.


WF Version 8105
February 07, 2019, 09:04 AM
BabakNYC
Have you tested to see if it works when it's hardcoded?


WebFOCUS 8206, Unix, Windows