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.
I'm running a simple report, however, when I have an "-INCLUDE" statement I get the dreaded "Error Parsing Master File xx (0)" error. I've perused the forum searching for an answer but have yet to find one that works. I can go in through the text editor to do all my work, but I'm wondering why I receive this error. Any ideas? Below is the code;
-INCLUDE IBFS:/WFC/Repository/PFS_KPIs/pfs_getdate_vars.fex
TABLE FILE PFSAR
SUM
PFSAR.PFSAR.CHARGES
BY LOWEST PFSAR.PFSAR.ARTYPDESC
ACROSS PFSAR.PFSAR.POSTPERIOD
ACROSS LOWEST PFSAR.PFSAR.FYMTH
ON TABLE SET PAGE-NUM NOLEAD
ON TABLE SET ASNAMES ON
ON TABLE NOTOTAL
ON TABLE PCHOLD FORMAT HTML
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
INCLUDE = IBFS:/EDA/EDASERVE/_EDAHOME/ETC/endeflt.sty,
$
ENDSTYLE
END
Here is the code for the pfs_getdate_vars.fex to be included. Maybe it'll help shed some light:
SET LINES=999999
TABLE FILE PFSRPTPD
PRINT
VPSTPDFY
WHERE READLIMIT EQ 1
ON TABLE SET PAGE-NUM NOLEAD
ON TABLE NOTOTAL
ON TABLE HOLD AS 'VARIABLEFY' FORMAT ALPHA
END
FILEDEF VARIABLFY DISK ..\variablefy.ftm
-RUN
-READ VARIABLEFY &CFY.A5.
-SET &PFY = &CFY -1;
-SET &P2FY = &CFY - 2;
Any suggestions would be appreciated.This message has been edited. Last edited by: Pondog,
WebFOCUS 8.1.05 Windows, All Outputs
Posts: 116 | Location: Birmingham, Al | Registered: July 23, 2015
Pondog, Can you post the .mas file. i have found that this usually happens when one or more fields in the table have a format that WF does not like. For example a TX?? is not good.
WF 7.6.11 Oracle WebSphere Windows NT-5.2 x86 32bit
Hey RSquared, not sure about posting a .mas file. Never done it before. Below is what I have. Let me know if a different view is required; i.e., Field view, Segment View, etc.
I ran into a situation recently where a master file had a USAGE different from an ACTUAL and it was the problem. And yet it was WebFOCUS that generated the master file!
Making the USAGE match the ACTUAL fixed the problem for me.
App Studio WebFOCUS 8.1.05M Windows, All Outputs
Posts: 594 | Location: Michigan | Registered: September 04, 2015
PonDog, I've run into this here as well (8.1.0.4). The ONE way I have found that works every time is that if the -INCLUDE file has any &ER variables, you must put a -DEFAULT for that &ER variable in the main procedure. If I do that, I've not yet had a problem with the INCLUDES.
I even ran into the issue with a custom footer that we were using. The INCLUDE file only had -SET &ER = statements and it gave me the error every time. I finally just eliminated that one and inserted the text into table1.ftp.
Best practice I've learned through the documentation is to move away from the -INCLUDE files, so we're eliminating most of ours in lieu of data warehouse tables and views.
Best Practice to move away from -INCLUDE? Really? Saddest thing I've ever heard.... Modularizing common code IS best practice, and, we -INCLUDE 100's of them; works fine... Need to figure out why code that works before doesn't work in a newer version, like:
-MRNOEDIT -INCLUDE whatever -MRNOEDIT BEGIN at top of fex -MRNOEDIT END at end of fex -INCLUDE foldername/whatever.fex with foldername on path etc...
When a change occurs, every fex that needs that change will have to be edited, where as, we'll change 1... Need to figure out the issue, imo... Good luck!This message has been edited. Last edited by: Tom Flynn,
Can you run this and post output and error message:
-SET &ECHO=ALL;
-INCLUDE IBFS:/WFC/Repository/PFS_KPIs/pfs_getdate_vars.fex
-RUN
TABLE FILE PFSAR
SUM
PFSAR.PFSAR.CHARGES
BY LOWEST PFSAR.PFSAR.ARTYPDESC
ACROSS PFSAR.PFSAR.POSTPERIOD
ACROSS LOWEST PFSAR.PFSAR.FYMTH
ON TABLE SET PAGE-NUM NOLEAD
ON TABLE SET ASNAMES ON
ON TABLE NOTOTAL
ON TABLE PCHOLD FORMAT HTML
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
INCLUDE = IBFS:/EDA/EDASERVE/_EDAHOME/ETC/endeflt.sty,
$
ENDSTYLE
END
PS: And I couldn't agree more with Tom!This message has been edited. Last edited by: Danny-SRL,
Daniel In Focus since 1982 wf 8.202M/Win10/IIS/SSA - WrapApp Front End for WF
Posts: 1980 | Location: Tel Aviv, Israel | Registered: March 23, 2006
I can run the code and it runs fine. The problem is that I can't open it "normally"; I have to open it in the Text Editor. If I try to right-click and select open I get the "Error Parsing MASTER File PFSAR(0)." message.
WebFOCUS 8.1.05 Windows, All Outputs
Posts: 116 | Location: Birmingham, Al | Registered: July 23, 2015
I can open it fine in Dev Studio, but we're trying to do all our development in App Studio going forward. I personally am more comfortable working in App Studio. However, when it comes right down to it I do most of my work in the code as opposed to the GUI. Still, I don't think this error should be the norm.
WebFOCUS 8.1.05 Windows, All Outputs
Posts: 116 | Location: Birmingham, Al | Registered: July 23, 2015
However, this SPS is for DevStudio which you said opened your file correctly, so the issue might be something else. You may want to open a case on our Tech Support site so that this issue can be investigated further. Please let us know if you do.
Thanks to all for the suggestions. At this time the work around is to go straight into text editor, which works for me. If it becomes a major roadblock I'll open a case and revise this post.
Thanks again, Pondog
WebFOCUS 8.1.05 Windows, All Outputs
Posts: 116 | Location: Birmingham, Al | Registered: July 23, 2015