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 am trying to create variables using a 1 record HOLD file.
I get the following error:
0 ERROR AT OR NEAR LINE 42 IN PROCEDURE invoice_detail_subsidiary_daily (FOC205) THE DESCRIPTION CANNOT BE FOUND FOR FILE NAMED: COMPHOLD 0 ERROR AT OR NEAR LINE 43 IN PROCEDURE invoice_detail_sub (FOC2907) ERROR WITH DIALOGUE MANAGER COMMAND: -READFILE COMPHOLD
Code that I am trying to run:
TABLE FILE COMPANY_LOCATION PRINT FFA_DAY_END FFA_FISCAL_WEEK FFA_FISCAL_PERIOD FFA_FISCAL_YEAR ON TABLE SET PAGE-NUM NOLEAD ON TABLE NOTOTAL ON TABLE HOLD AS COMPHOLD ON TABLE SET HTMLCSS ON ON TABLE SET STYLE * INCLUDE = endeflt, $ TYPE=REPORT, GRAPHCOLOR='GREEN', $ TYPE=REPORT, OBJECT=MENU, COLOR='WHITE', HOVER-COLOR=RGB(66 70 73), BACKCOLOR=RGB(102 102 102), HOVER-BACKCOLOR=RGB(218 225 232), BORDER-COLOR='WHITE', $ TYPE=REPORT, OBJECT=STATUS-AREA, COLOR='WHITE', BACKCOLOR=RGB(102 102 102), $ TYPE=REPORT, OBJECT=CURRENT-ROW, HOVER-BACKCOLOR=RGB(218 225 232), BACKCOLOR=RGB(200 200 200), $ TYPE=REPORT, OBJECT=CALC-AREA, COLOR='WHITE', BACKCOLOR=RGB(102 102 102), $ ENDSTYLE END -READFILE COMPHOLD -TYPE FFA_DAY_END IS &DE -TYPE FFA_FISCAL_WEEK IS &FW -TYPE FFA_FISCAL_PERIOD IS &FP -TYPE FFA_FISCAL_YEAR IS &FYThis message has been edited. Last edited by: Kerry,
WebFocus 8.1.5 iSeries/Windows DB2/SQL/Access Dev Studio App Studio Maintain ReportCaster
Posts: 341 | Location: Pembroke NH/Jericho NY | Registered: June 15, 2011
In addition to Dan's comment, you will probably need to:
...
ON TABLE HOLD AS COMPHOLD FORMAT ALPHA
...
Otherwise you'll get a binary representation of the values, something Dialogue Manager (and you) may not be too happy about.
That is, of course, assuming your FFA_* fields are numeric. If they are all strings in your source data then you shouldn't have any issues by leaving the HOLD file as binary.
format is typically Ann, where nnis the length of the string to get.
If you issue a ? HOLD COMPHOLD you will see the lengths of the fields.
Unless you are going to use the file COMPHOLD later in your fex, I would suggest using ON TABLE SAVE AS COMPHOLD, as this creates an alpha version of the file anyway, and also shows the field sizes in the output making it easier to work out the -READ.
jay, get rid of all that stylesheet noise..it has no part of this task. I would have issued a -READ filename varname.size i can't wait to upgrade and find out about this walk in the park -READFILE... tks new jersey!
quote:
TABLE FILE COMPANY_LOCATION PRINT FFA_DAY_END FFA_FISCAL_WEEK FFA_FISCAL_PERIOD FFA_FISCAL_YEAR ON TABLE HOLD AS COMPHOLD FORMAT ALPHA END -RUN
In Focus since 1979///7706m/5 ;wintel 2008/64;OAM security; Oracle db, ///MRE/BID
Posts: 3811 | Location: Manhattan | Registered: October 28, 2003
I've found the GUI tools in 7.7.03M doing a more decent job than in previous versions (particularly the Synonym Editor and the JOIN /MATCH Tool) so I'm seeing myself using the GUI to scaffold my reports more frequently than in the past.
Dev Studio's Report Painter could do a better job at *not* adding any STYLE statements (which susannah accurately calls "noise") when choosing a non-styled output format such as HOLD BINARY, HOLD ALPHA, HOLD FOCUS, etc.
TABLE FILE EMPLOYEE
PRINT LAST_NAME FIRST_NAME DEPARTMENT CURR_SAL
BY EMP_ID
ON TABLE HOLD AS READF1 FORMAT BINARY
END
-RUN
-READFILE READF1
-TYPE LAST_NAME IS &LAST_NAME
-TYPE FIRST_NAME IS &FIRST_NAME
-TYPE DEPARTMENT IS &DEPARTMENT
-TYPE CURR_SAL IS &CURR_SAL
-TYPE EMP_ID IS &EMP_ID
They used BINARY.
Posts: 60 | Location: Ellensburg Washington | Registered: May 22, 2009
Wow! I hadn't figured that out so our old trick of HOLDing ALPHA is no longer a must when reading values into &variables. -READFILE really was a nice addition to Dialogue Manager!