Focal Point
[SOLVED]Results of FPRINT different from 7.7.03 to 8.1.05

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/2287059186

April 22, 2016, 12:51 PM
jfr99
[SOLVED]Results of FPRINT different from 7.7.03 to 8.1.05
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
April 22, 2016, 01:20 PM
Tom Flynn
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
April 22, 2016, 01:29 PM
Tony A
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 
April 22, 2016, 01:47 PM
Tom Flynn
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
April 22, 2016, 02:15 PM
jfr99
Thanks Tony and Tom ...

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


WebFocus 8.201M, Windows, App Studio
April 25, 2016, 12:34 PM
Edward Wolfgram
Your example should work, you should open case with customer support.


IBI Development