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 need to display the date and time of the last modification made to a file. The ?FDT query shows me this. Is it possible to write this information to a file that I can parse out and extract the Date/Time information? This would enable me to display this info on an HTML page of our self-service screen. The only other option I can think of is to create another field in each data base 'LAST_UPDATE_DATE' and add logic to our update programs to record the Date/Time of each update.This message has been edited. Last edited by: Kerry,
Here is a fex that will get you what you need. Just modify it to show what you want to. FOCAPPQ is a special system "table" that contains this information. Set &APPFOLD to your application folder name (Self-Serve).
APP QUERY &APPFOLD HOLD
DEFINE FILE FOCAPPQ
FILETYPE/A3=GETTOK(FILENAME,70,2,'.',3,'A3');
RMSL/A8=EDIT (DATE, '99$99$9999');
READDATE/YYMD=DATECVT(RMSL,'A8DMYY','YYMD');
END
TABLE FILE FOCAPPQ
ON TABLE SET PAGE-NUM OFF
ON TABLE SET LINES 999999
HEADING
"WebFocus Application <APPNAME "
"On &WF_ENV Environment"
" "
FOOTING
"All files are shown lower case regardless of actual filename case."
PRINT
FILENAME AS 'Filename'
SIZE AS 'Filesize,in bytes'
READDATE AS 'Date Last,Updated'
TIME AS 'Time Last, Updated'
BY FILETYPE
ON TABLE SET STYLE *
TYPE=HEADING, LINE=1, SIZE=12, STYLE=BOLD, JUSTIFY=CENTER,$
TYPE=HEADING, LINE=1, OBJECT=FIELD, COLOR=RED, STYLE=BOLD+UNDERLINE,$
TYPE=HEADING, LINE=2, SIZE=11, STYLE=BOLD, JUSTIFY=CENTER,$
TYPE=TITLE, SIZE=10, STYLE=BOLD, COLOR=RED,$
ENDSTYLE
END
APP QUERY app HOLD - Writes a list of all files in the application app in the file focappq.ftm in a temporary directory; the output is described by focappq.mas
Currently there is no standard way of doing this. IBI is researching on how to implement this, but it won't be here soon. Meanwhile, you could misuse the good old tracing mechanism to do this. Example:
SET TRACEOFF = ALL
SET TRACEON = ALL
SET TRACESTAMP=OFF
SET TRACEUSER=TEST.TRC
-RUN
? FILE somefocusfile
SET TRACEOFF = ALL
-RUN
FILEDEF MASTER DISK TRACE.MAS
FILEDEF TRACE DISK TEST.TRC
-RUN
-WRITE MASTER FILENAME=TRACE, SUFFIX=FIX
-WRITE MASTER SEGNAME=TRACE
-WRITE MASTER FIELDNAME=LINE, FORMAT=A200, ACTUAL=A200, $
-RUN
APP HOLD SESSION
DEFINE FILE TRACE
RESULT/A175 = SUBSTR(200,LINE,45,200,155,'A155');
END
TABLE FILE TRACE
PRINT RESULT
IF LINE CONTAINS 'ngput'
ON TABLE SAVE AS OUTPUT
END
-RUN
Now there is a file stored in your SESSION app dir called output.ftm, which contains the output of the ? FILE command.
Hope this helps ...
GamP
- Using AS 8.2.01 on Windows 10 - IE11.
in Focus since 1988
Posts: 1961 | Location: Netherlands | Registered: September 25, 2007