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.
Hi, I need to query a hold table that is created from an oracle database that has a date field (BEGIN_DATE) in this format mm/dd/yyyy hh24:mi:ss. The two string variables I get passed in from the form are in this format mm/dd/yyyy. I tried to format the BEGIN_DATE field in the SQL statement that creates the hold table but webfocus doesn't recognize the sql to_char() function. Does anyone know how I can convert the date field in my hold table to a character string that matches the format of the form variables that are being passed?
SQL SELECT
DISTINCT E.SNL_ID, E.NAME, A.SD_NUMBER,
A.ASSIGNMENT_TYPE, A.BEGIN_DATE
>FROM EXTCOPY.PERSON E, SD_ASSIGNMENT A
WHERE E.NAME LIKE '&OTHER.EVAL%'
AND A.ASSIGNMENT_TYPE = '&OTHERTYPE.EVAL'
AND E.SNL_ID = A.ASSIGNMENT_ID;
TABLE ON TABLE HOLD AS HOLDASSIGN
END JOIN SD_NUMBER IN HOLDASSIGN TO SD_NUMBER IN SD AS J8<br />END
TABLE FILE HOLDASSIGN
PRINT NAME NOPRINT
SD_NUMBER NOPRINT
DESCRIPTIVE_TITLE AS 'Title'
BEGIN_DATE/HMDYY AS 'Begin Date'
WHERE BEGIN_DATE GE '&begdate.eval'
WHERE BEGIN_DATE LE '&enddate.eval'
BY NAME AS 'Name'
BY ASSIGNMENT_TYPE AS 'Assignment Type'
BY SD_NUMBER AS 'SD #'
This message has been edited. Last edited by: <Mabel>,
Hi Curtis, Thanks for the help. It looks like webfocus doesn't recognize the to_date() function either. However, I found a solution with the help of this link. I used the webfocus HDATE() function in a define. http://techsupport.informationbuilders.com/tech/ibm/ibm_nf_nf751_p1.html Here it is...
SQL SELECT DISTINCT E.SNL_ID, E.NAME, A.SD_NUMBER, A.ASSIGNMENT_TYPE,
A.BEGIN_DATE
FROM EXTCOPY.PERSON E, SD_ASSIGNMENT A
WHERE E.NAME LIKE '&OTHER.EVAL%'
AND A.ASSIGNMENT_TYPE = '&OTHERTYPE.EVAL'
AND E.SNL_ID = A.ASSIGNMENT_ID;
TABLE
ON TABLE HOLD AS HOLDASSIGN
END
JOIN SD_NUMBER IN HOLDASSIGN TO
SD_NUMBER IN SD AS J8<br />END
DEFINE FILE HOLDASSIGN
BEGDATE/MDYY = HDATE(BEGIN_DATE, 'MDYY');<br />END TABLE FILE HOLDASSIGN
PRINT NAME NOPRINT
SD_NUMBER NOPRINT
DESCRIPTIVE_TITLE AS 'Title'
BEGIN_DATE NOPRINT
BEGDATE AS 'Begin Date'
WHERE BEGDATE GE '&begdate'
WHERE BEGDATE LE '&enddate'
BY NAME AS 'Name'
BY ASSIGNMENT_TYPE AS 'Assignment Type'
BY SD_NUMBER AS 'SD #'
This message has been edited. Last edited by: <Mabel>,
I would like to do exactly that. However, I am new to webfocus and I couldn't get any of the SQL funtions I normally use to work in webfocus (TO_CHAR(), TO_DATE(), TO_TIMESTAMP()) using the SQL passthru. I've used these functions numerous times before outside of webfocus on oracle databases. However in webfocus, I keep getting unrecognized scalar function errors. I looked in the documentation and they aren't listed as supported scalar functions.
-SET &START_DT = &DATEMDYY; SET SQLENGINE=SQLORA SQL SET SERVER EQP SQL SELECT * FROM EQP.TIME_D WHERE PERIOD_START_DT >= TO_DATE('&START_DT','MM-DD-YYYY'); END