Focal Point Banner


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.


Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [CLOSED] How to retrieve name of last HOLD file created

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] How to retrieve name of last HOLD file created
 Login/Join
 
Member
posted
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,


WF version 8105
all output
 
Posts: 28 | Registered: February 17, 2010Report This Post
Gold member
posted Hide Post
Troy,

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.


WF 7.6.10, Windows, PDF, Excel
 
Posts: 75 | Location: Dallas, TX | Registered: February 12, 2004Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [CLOSED] How to retrieve name of last HOLD file created

Copyright © 1996-2020 Information Builders