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] Concat date and time fields to make a timestamp field

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] Concat date and time fields to make a timestamp field
 Login/Join
 
Master
posted
I have these time and date fields:

quote:

RTIMEF MR_DATE
00:30:00 10/11/08


And, I want to concat them to make a timestamp field like:

quote:

RTIME_D
10/11/08 00:30:00


When I look at the field formats from a SAVE file...
quote:

ALPHANUMERIC RECORD NAMED SAVE
0 FIELDNAME ALIAS FORMAT LENGTH
AR_DATE A6YMD 6
RTIMEF A08 8
MR_DATE MDY 6
TOTAL 20


I am not sure what I am missing to be able to concat these to show the timestamp field
in a report.

quote:

DEFINE FILE APPLES
RECD_DT/A20 = MR_DATE | ' ' | RTIMEF;
END


Any ideas? Idea
Thanks!

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


Tomsweb
WebFOCUS 8.1.05M, 8.2.x
APP Studio, Developer Studio, InfoAssist, Dashboards, charts & reports
Apache Tomcat/8.0.36
 
Posts: 573 | Location: Baltimore, MD | Registered: July 06, 2006Report This Post
Virtuoso
posted Hide Post
Your code is not creating a timestamp field. It is only creating an alphanumeric string containing a date and time. I know that sounds picky but the formats for each are entirely different and they can't be used interchangeably.

If you want to create an actual timestamp field, try the HINPUT function. If you only need an alpha string just

DEFINE FILE filename
DTTIM_STRING/A15=AR_DATE | ' ' | RTIMEF;
END


Regards,

Darin



In FOCUS since 1991
WF Server: 7.7.04 on Linux and Z/OS, ReportCaster, Self-Service, MRE, Java, Flex
Data: DB2/UDB, Adabas, SQL Server Output: HTML,PDF,EXL2K/07, PS, AHTML, Flex
WF Client: 77 on Linux w/Tomcat
 
Posts: 2298 | Location: Salt Lake City, Utah | Registered: February 02, 2007Report This Post
Master
posted Hide Post
What I am actually trying to do is break a database field in HYYMDS format which displays as:
2009/01/01 09:35:00

to display as:
01/01/09 09:35:00


Tomsweb
WebFOCUS 8.1.05M, 8.2.x
APP Studio, Developer Studio, InfoAssist, Dashboards, charts & reports
Apache Tomcat/8.0.36
 
Posts: 573 | Location: Baltimore, MD | Registered: July 06, 2006Report This Post
Virtuoso
posted Hide Post
You could use the HCNVRT function to convert your HYYMDS field to alphanumeric, and then use EDIT on the converted field to pick out the substrings in the order that you need.


GamP

- Using AS 8.2.01 on Windows 10 - IE11.
in Focus since 1988
 
Posts: 1961 | Location: Netherlands | Registered: September 25, 2007Report This Post
Expert
posted Hide Post
Would this help ?

TABLE FILE CAR
PRINT COUNTRY
 COMPUTE DTS1/HYYMDS = DT(20090101 09:35:00.000) ;
 COMPUTE DTS2/HDMYS = DTS1 ;
END


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     [CLOSED] Concat date and time fields to make a timestamp field

Copyright © 1996-2020 Information Builders