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 date string in an amper variable, &RPT_DATE = ’25 MAR, 2017’;. I am searching for my book, (Almost) 1001 Ways to Work with Dates (and the life of a consultant amounts to searching through boxes for your reference materials).
Is this string ’25 MAR, 2017’ represented in one of the various formats described in this book? I’d like to convert it using CHGDAT to use in a report heading.
Thank youThis message has been edited. Last edited by: Tomsweb,
Tom, You don't say in what format you want the date to appear. I'll assume that you want 25/03/2017. I'm afraid CHGDAT will not accept the string ’25 MAR, 2017’. But you can go via DEFINE. SOLUTION 1:
-SET &RPT='25 MAR, 2017';
DEFINE FILE CAR
MYD/DMYY WITH COUNTRY='&RPT';
END
TABLE FILE CAR
BY MYD AS ''
ON TABLE SET PAGE OFF
ON TABLE SET HOLDLIST PRINTONLY
ON TABLE HOLD FORMAT ALPHA
END
-RUN
-READ HOLD,&MYD
-SET &MYD=EDIT(&MYD,'99/99/9999');
-TYPE &MYD
SOLUTION 2:
-SET &RPT='25 MAR, 2017';
DEFINE FILE CAR
MYD/DMYY WITH COUNTRY='&RPT';
END
TABLE FILE CAR
BY MYD AS ''
ON TABLE SET PAGE OFF
ON TABLE SET HOLDLIST PRINTONLY
ON TABLE HOLD FORMAT WP
END
-RUN
-READ HOLD,&1
-READ HOLD,&MYD
-RUN
-TYPE &MYD
Daniel In Focus since 1982 wf 8.202M/Win10/IIS/SSA - WrapApp Front End for WF
Posts: 1980 | Location: Tel Aviv, Israel | Registered: March 23, 2006