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 know you can use &LINES to get the # of lines returned from the previous HOLD, but is there a system variable that stores the name of the last HOLD file stored?This message has been edited. Last edited by: Kerry,
I'm adding the code that I came up with here also.
APP QUERY * HOLD
-RUN
TABLE FILE FOCAPPQ
PRINT *
BY HIGHEST DATE
BY HIGHEST TIME
ON TABLE HOLD AS TESTTP
END
-RUN
TABLE FILE CAR
PRINT
SALES
BY COUNTRY
BY CAR
BY MODEL
ON TABLE HOLD AS CAR1
END
-RUN
DOS dir *.ftm /T /O:D > lastHold.txt
APP FI LSTHLD DISK lasthld.mas
-RUN
-WRITE LSTHLD FILENAME=LASTHLD, SUFFIX=FIX
-WRITE LSTHLD SEGMENT=ONE, SEGTYPE = S0,$
-WRITE LSTHLD FIELDNAME=DATE,USAGE=A12,ACTUAL=A12,$
-WRITE LSTHLD FIELDNAME=TIME,USAGE=A8, ACTUAL=A08,$
-WRITE LSTHLD FIELDNAME=SIZE,USAGE=A19,ACTUAL=A19,$
-WRITE LSTHLD FIELDNAME=HLDFLE,USAGE=A50,ACTUAL=A50,$
-RUN
APP FI LASTHLD DISK lasthold.txt
-RUN
TABLE FILE LASTHLD
PRINT *
COMPUTE CTR/I5 = CTR + 1;
BY HIGHEST TIME NOPRINT
WHERE DATE CONTAINS '/'
END
Basically, it is just getting the files from the agent that the report is running on and putting them in a file to be read from FOCUS.