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] Concatenating date and alpha string together

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] Concatenating date and alpha string together
 Login/Join
 
Gold member
posted
Is this possible? I'm trying to return a list of names in sr_persnl and then add a date (in datetime format, but I don't need the time) they were assigned at the end.
(SQL)
SELECT (...)
SUBSTR(mis_get_personnel_func(r.service_number),1,500) sr_persnl,
mis_get_status_date_func(r.service_number,'AS') sr_date_assigned
FROM (...)


(define)
SR_DATE_ASSIGNED/YYMD = HDATE(SR_DATE_ASSIGNED, 'YYMD');
SR_DATE_ASSGN/A20 = SR_DATE_ASSIGNED;
SMITH/A400 = SR_DATE_ASSGN||('-'|SR_PERSNL);

(table)
PRINT
(...)
SMITH AS ' SMITH' IN +1
(...)

But I get:
0 ERROR AT OR NEAR LINE 325 IN PROCEDURE sr001j FOCEXEC *
(FOC282) RESULT OF EXPRESSION IS NOT COMPATIBLE WITH THE FORMAT OF FIELD:
SR_DATE_ASSGN
0 ERROR AT OR NEAR LINE 326 IN PROCEDURE sr001j FOCEXEC *
(FOC258) FIELDNAME OR COMPUTATIONAL ELEMENT NOT RECOGNIZED: SR_DATE_ASSGN
0 ERROR AT OR NEAR LINE 351 IN PROCEDURE sr001j FOCEXEC *
(FOC003) THE FIELDNAME IS NOT RECOGNIZED: SMITH
BYPASSING TO END OF COMMAND
(FOC009) INCOMPLETE REQUEST STATEMENT

Perhaps I've been fooling with it too long. Ideas?

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


WebFOCUS 7.6.3 | Solaris 10 | Excel, PDF
 
Posts: 46 | Location: Austin TX | Registered: June 04, 2009Report This Post
Expert
posted Hide Post
To concatenate, both items must be alphanumeric. You can use function HCNVRT or a series of EDIT commands to convert your date to alpha.


Ginny
---------------------------------
Prod: WF 7.7.01 Dev: WF 7.6.9-11
Admin, MRE,self-service; adapters: Teradata, DB2, Oracle, SQL Server, Essbase, ESRI, FlexEnable, Google
 
Posts: 2723 | Location: Ann Arbor, MI | Registered: April 05, 2006Report This Post
Virtuoso
posted Hide Post
quote:
SR_DATE_ASSIGNED/YYMD = HDATE(SR_DATE_ASSIGNED, 'YYMD');
SR_DATE_ASSGN/A20 = SR_DATE_ASSIGNED;

should read
SR_DATE_ASSIGNED/YYMD = HDATE(SR_DATE_ASSIGNED, 'YYMD');
SR_DATE_ASSGN/A8YYMD = SR_DATE_ASSIGNED;


GamP

- Using AS 8.2.01 on Windows 10 - IE11.
in Focus since 1988
 
Posts: 1961 | Location: Netherlands | Registered: September 25, 2007Report 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] Concatenating date and alpha string together

Copyright © 1996-2020 Information Builders