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     [Solved] Print the current system Date & Time on Report Footing

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[Solved] Print the current system Date & Time on Report Footing
 Login/Join
 
Member
posted
Its easy to print the Date on the footing, but how do I print the current system time.

I need a timestamp on the report since it is run many times a day.

This message has been edited. Last edited by: Daren,


Web Focus 7.6.5
JDE World
 
Posts: 20 | Registered: July 29, 2008Report This Post
<JG>
posted
-SET &TS=HHMMSS('A8');
TABLE FILE CAR
FOOTING BOTTOM
" &DATE &TS "
SUM DC
BY COUNTRY
ON TABLE PCHOLD FORMAT HTML
END
 
Report This Post
Member
posted Hide Post
It worked perfectly.

Thanks


Web Focus 7.6.5
JDE World
 
Posts: 20 | Registered: July 29, 2008Report This Post
Virtuoso
posted Hide Post
Daren,
Please edit the description of the topic so that it reads [SOLVED].
Thanks,


GamP

- Using AS 8.2.01 on Windows 10 - IE11.
in Focus since 1988
 
Posts: 1961 | Location: Netherlands | Registered: September 25, 2007Report This Post
Master
posted Hide Post
There is also a system variable &TOD that is already populated with time in hh.mm.ss format.

To get a list of system variable execute the code below.

-? &

This message has been edited. Last edited by: TexasStingray,




Scott

 
Posts: 865 | Registered: May 24, 2004Report This Post
<JG>
posted
Correct,

&TOD
"Returns the current time.
When you enter FOCUS, this variable is updated to the current system time only when you execute a
MODIFY, SCAN, or FSCAN command.

To obtain the exact time during any process, use the HHMMSS subroutine"

In this case unless it's a very long running process &TOD would almost certainly do.

IF you want in process timestamps then you need HHMMSS.
 
Report This Post
Gold member
posted Hide Post
Hi,

I need time format like 23:54:43.12

how to get it ... I use &TOD which gives 23.54.43


In Focus since 2008
WebFOCUS 8.2.0.1
Windows 7 - IE,Chrome,Firefox
Excel, PDF, HTML, AHTML, XML
JavaScript, jQuery, D3.js, Highcharts
 
Posts: 79 | Location: New York | Registered: February 04, 2010Report This Post
Virtuoso
posted Hide Post
do a search on HYYMDm


In Focus since 1993. WebFOCUS 7.7.03 Win 2003
 
Posts: 1903 | Location: San Antonio | Registered: February 28, 2005Report This Post
Gold member
posted Hide Post
I have used this

  DT1/HYYMDs = HGETC(8, 'HYYMDs'); 


but it gives me a format like

 2010/06/07 17.50.43.426 


I am trying to truncate the last character from the above string .. like i need to get the time as 17:50:43.43


In Focus since 2008
WebFOCUS 8.2.0.1
Windows 7 - IE,Chrome,Firefox
Excel, PDF, HTML, AHTML, XML
JavaScript, jQuery, D3.js, Highcharts
 
Posts: 79 | Location: New York | Registered: February 04, 2010Report This Post
Expert
posted Hide Post
Is there a reason to round the time at 100 milliseconds ?

You are limited with Date/Time formats.

Although the manual describes the format HYYMDS{x}, where x is the number of digits, I could not get it to work with a COMPUTE or a DEFINE.

You may have to convert the time with HTIME to get a numeric and round the number.


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

 
Posts: 6347 | Location: 33°49'23.0"S, 151°11'41.0"E | Registered: October 31, 2006Report 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     [Solved] Print the current system Date & Time on Report Footing

Copyright © 1996-2020 Information Builders