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.
Simply want to append the contents of the first hold file to the second. Fields are of similar type. I can not seem to get the syntax right....Suggestions...
DEFINE FILE FIN_LVPG_PRD_GL_VW CHGS/D12.2=0; END
TABLE FILE FIN_LVPG_PRD_GL_VW SUM FIN_LVPG_PRD_GL_VW.FIN_LVPG_PRD_GL_VW.PRD_AMOUNT AS BADDEBT CHGS BY LOWEST FIN_LVPG_PRD_GL_VW.FIN_LVPG_PRD_GL_VW.FISCAL_YR AS FY BY LOWEST FIN_LVPG_PRD_GL_VW.FIN_LVPG_PRD_GL_VW.MTH_KEY AS PERIOD BY LOWEST FIN_LVPG_PRD_GL_VW.FIN_LVPG_PRD_GL_VW.LVPG_IDXBANBR AS BANBR ON TABLE SET PAGE-NUM NOLEAD ON TABLE NOTOTAL ON TABLE HOLD AS HOLDBADDEBT FORMAT ALPHA ON TABLE SET HTMLCSS ON ON TABLE SET STYLE * $ ENDSTYLE END DEFINE FILE TBLMSTR_CHGS BADDEBT/D12.2=0; END TABLE FILE TBLMSTR_CHGS SUM BADDEBT TBLMSTR_CHGS.TBLMSTR_CHGS.TTLCHGS AS CHGS BY LOWEST TBLMSTR_CHGS.TBLMSTR_CHGS.FISCALYEAROFINVCREPD AS FY BY LOWEST TBLMSTR_CHGS.TBLMSTR_CHGS.INVCREPD AS PERIOD BY LOWEST TBLMSTR_CHGS.TBLMSTR_CHGS.RPTBANBR AS BANBR ON TABLE SET PAGE-NUM NOLEAD ON TABLE NOTOTAL ON TABLE HOLD AS HOLDCHGS FORMAT ALPHA ON TABLE SET HTMLCSS ON ON TABLE SET STYLE * INCLUDE = endeflt, $ ENDSTYLE END
TABLE FILE HOLDBADDEBT PRINT FIN_LVPG_PRD_GL_VW.FIN_LVPG_PRD_GL_VW.PRD_AMOUNT CHGS FIN_LVPG_PRD_GL_VW.FIN_LVPG_PRD_GL_VW.FISCAL_YR FIN_LVPG_PRD_GL_VW.FIN_LVPG_PRD_GL_VW.MTH_KEY FIN_LVPG_PRD_GL_VW.FIN_LVPG_PRD_GL_VW.LVPG_IDXBANBR ON TABLE HOLD MORE FILE HOLDCHGS END
*errors out: 0 NUMBER OF RECORDS IN TABLE= 0 LINES= 0 0 NUMBER OF RECORDS IN TABLE= 1339 LINES= 1339 0 ERROR AT OR NEAR LINE 44 IN PROCEDURE ADHOCRQ FOCEXEC * (FOC003) THE FIELDNAME IS NOT RECOGNIZED: FIN_LVPG_PRD_GL_VW.FIN_LVPG_PRD_GL_VW.PRD_AMOUNT BYPASSING TO END OF COMMAND (FOC009) INCOMPLETE REQUEST STATEMENT
I tried using the the 'as' names...same error....This message has been edited. Last edited by: <Kathryn Henning>,
DEFINE FILE FIN_LVPG_PRD_GL_VW
CHGS/D12.2=0;
END
TABLE FILE FIN_LVPG_PRD_GL_VW
SUM FIN_LVPG_PRD_GL_VW.FIN_LVPG_PRD_GL_VW.PRD_AMOUNT AS BADDEBT
CHGS
BY LOWEST FIN_LVPG_PRD_GL_VW.FIN_LVPG_PRD_GL_VW.FISCAL_YR AS FY
BY LOWEST FIN_LVPG_PRD_GL_VW.FIN_LVPG_PRD_GL_VW.MTH_KEY AS PERIOD
BY LOWEST FIN_LVPG_PRD_GL_VW.FIN_LVPG_PRD_GL_VW.LVPG_IDXBANBR AS BANBR
-***** ------------------------------------------------------- ****
ON TABLE SET ASNAMES ON
ON TABLE SET HOLDLIST PRINTONLY
-***** ------------------------------------------------------- ****
ON TABLE HOLD AS HOLDBADDEBT FORMAT ALPHA
END
DEFINE FILE TBLMSTR_CHGS
BADDEBT/D12.2=0;
END
TABLE FILE TBLMSTR_CHGS
SUM
BADDEBT
TBLMSTR_CHGS.TBLMSTR_CHGS.TTLCHGS AS CHGS
BY LOWEST TBLMSTR_CHGS.TBLMSTR_CHGS.FISCALYEAROFINVCREPD AS FY
BY LOWEST TBLMSTR_CHGS.TBLMSTR_CHGS.INVCREPD AS PERIOD
BY LOWEST TBLMSTR_CHGS.TBLMSTR_CHGS.RPTBANBR AS BANBR
-***** ------------------------------------------------------- ****
ON TABLE SET ASNAMES ON
ON TABLE SET HOLDLIST PRINTONLY
-***** ------------------------------------------------------- ****
ON TABLE HOLD AS HOLDCHGS FORMAT ALPHA
END
TABLE FILE HOLDBADDEBT
PRINT
BADDEBT
CHGS
FY
PERIOD
BANBR
ON TABLE HOLD
MORE
FILE HOLDCHGS
END
WebFOCUS 8.2.06 mostly Windows Server
Posts: 195 | Location: Johannesburg, South Africa | Registered: September 13, 2008
btw, the code gets further..I now get a more helpfull error message: 0 ERROR AT OR NEAR LINE 47 IN PROCEDURE ADHOCRQ FOCEXEC * (FOC957) FORMAT MISMATCH FOR THE FIELD: BADDEBT
When I hover over column: BADDEBT in my table, it is PACKED 20.2...I believe I just need to determine the syntax to change:
I generally include these commands when I create HOLD files. They work well for me as "defaults".
ON TABLE SET ASNAMES ON: As you said - if you specify an "AS" name for a column, then the field in the HOLD file will have that name.
ON TABLE SET HOLDLIST PRINTONLY This tells WebFOCUS to only write the columns that you would have seen on the report (e.g. if it was an online report) to the HOLD file.
For example, if your report uses "NOPRINT" or COMPUTE statements that refer to columns that aren't being printed, then the default would normally have been to write these "hidden" columns to the HOLD file. This command overrides that default - so the "hidden" fields don't make their way to the HOLD file.
WebFOCUS 8.2.06 mostly Windows Server
Posts: 195 | Location: Johannesburg, South Africa | Registered: September 13, 2008