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 have a situation where I need to accept a paramter then reformat it and use in the where clause so that the result set from the database is small. Here is the example.
BY HH_CUST_NUM WHERE ( CB_MAJ_ACCT_NUM EQ '00004' ); WHERE ( BILL_YEAR EQ '&ENTER_YEAR.Enter the year.' );
BILL_YEAR is a defined field. I want to accept the year in ccyy format from the user and create a variable using ENTER_YEAR in the MM/DD/YY format. Instead of BILL_YEAR I want to use my database field so that I can force the FOCUS to use database fiedl in the where clause.
Any help is appreciated.
Posts: 176 | Location: Desplaines | Registered: August 05, 2004
To do what you want, you will need to manipulate the input source year to become a full date value. Here is the code:
DEFINE FILE EMPLOYEE ND/YY = &INPUT_YEAR; ND1/YYMD=ND; NEWDT/I8MDYY = DATECVT(ND1, 'YYMD', 'I8MDYY'); END TABLE FILE EMPLOYEE BY NEWDT PRINT EMP_ID LAST_NAME END
The above converts the year to a full YYMD format, which is set to Jan 1 of the year entered. Then use DATECVT to covert it back to a legacy date (Integer) field in the format of your choice.This message has been edited. Last edited by: <Mabel>,
Posts: 44 | Location: New York City | Registered: May 23, 2004
Try to avoid manipulating input values as DEFINEd fields. Defined fields are evaluated once for every row of extracted data. Do the manipulation with Dialog Manager Variables.