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     [SOLVED]Results of FPRINT different from 7.7.03 to 8.1.05

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED]Results of FPRINT different from 7.7.03 to 8.1.05
 Login/Join
 
Platinum Member
posted
Hi All ... Started testing with version 8.1.05 ... getting different results from FPRINT

running this code:

-*
-SET &FPDTE01 = FPRINT(&DMYY,'I8DMTYY','A15');
-SET &FPDTE02 = EDIT(FPRINT(&DMYY,'I8DMTYY','A15'),'99-$999-$9999');
-SET &FPDTE03 = LOCASE(11, EDIT(FPRINT(&DMYY,'I8DMTYY','A15'),'99-$999-$9999'),'A11');
-TYPE DMYY --------- &DMYY
-TYPE FPDTE01 ------ &FPDTE01
-TYPE FPDTE02 ------ &FPDTE02
-TYPE FPDTE03 ------ &FPDTE03
-*

In 7.7.03 I get this:

DMYY --------- 22042016
FPDTE01 ------ 22 APR 2016
FPDTE02 ------ 22-APR-2016
FPDTE03 ------ 22-apr-2016

In 8.1.05 I get this:

DMYY --------- 22042016
FPDTE01 ------
FPDTE02 ------ - -
FPDTE03 ------ - -

Can anyone verify these same results? Please let me know.

Thanks
~Jim

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


WebFocus 8.201M, Windows, App Studio
 
Posts: 227 | Location: Lincoln Nebraska | Registered: August 12, 2008Report This Post
Expert
posted Hide Post
Get used to it, just the tip of the iceberg...
IBI code tightening in play...
Wait 'till you open your HTML in AS...

Use .EVAL with quotes:
  
-SET &ECHO=ALL;
-SET &FPDTE01 = FPRINT('&DMYY.EVAL','I8DMTYY','A15');
-SET &FPDTE02 = EDIT(FPRINT('&DMYY.EVAL','I8DMTYY','A15'),'99-$999-$9999');
-SET &FPDTE03 = LOCASE(11, EDIT(FPRINT('&DMYY.EVAL','I8DMTYY','A15'),'99-$999-$9999'),'A11');
-TYPE DMYY --------- &DMYY
-TYPE FPDTE01 ------ &FPDTE01
-TYPE FPDTE02 ------ &FPDTE02
-TYPE FPDTE03 ------ &FPDTE03
-EXIT


hth

This message has been edited. Last edited by: Tom Flynn,


Tom Flynn
WebFOCUS 8.1.05 - PROD/QA
DB2 - AS400 - Mainframe
 
Posts: 1972 | Location: Centennial, CO | Registered: January 31, 2006Report This Post
Expert
posted Hide Post
quote:
'I8DMTYY'

Better still, use a valid format or an alternative -
-SET &FPDTE02 = EDIT(&DATEDMtYY,'99$-999$-$9999');
-SET &FPDTE03 = LOCASE(11, EDIT(&DATEDMtYY,'99$-999$-$9999'),'A11');


T



In FOCUS
since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2  
WebFOCUS App Studio 8.2.06 standalone on Windows 10 
 
Posts: 5694 | Location: United Kingdom | Registered: April 08, 2004Report This Post
Expert
posted Hide Post
Yep, Tony has shown that is the way to do it, we do it a bit differently, same concept, though.
We don't have any reason to show a date in dd-mmm-yyyy format...


Tom Flynn
WebFOCUS 8.1.05 - PROD/QA
DB2 - AS400 - Mainframe
 
Posts: 1972 | Location: Centennial, CO | Registered: January 31, 2006Report This Post
Platinum Member
posted Hide Post
Thanks Tony and Tom ...

I've started a list of gotchas ... Onward ...


WebFocus 8.201M, Windows, App Studio
 
Posts: 227 | Location: Lincoln Nebraska | Registered: August 12, 2008Report This Post
Gold member
posted Hide Post
Your example should work, you should open case with customer support.


IBI Development
 
Posts: 61 | Registered: November 15, 2005Report 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     [SOLVED]Results of FPRINT different from 7.7.03 to 8.1.05

Copyright © 1996-2020 Information Builders