Focal Point
[SOLVED] COMPARISON BETWEEN COMPUTATIONAL AND ALPHA VALUES IS NOT ALLOWED

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

July 19, 2017, 04:09 PM
tlbrydie
[SOLVED] COMPARISON BETWEEN COMPUTATIONAL AND ALPHA VALUES IS NOT ALLOWED
I have an issue that I am hoping I can get some assistance with. I've got two(2) fields returning the difference between two(2) dates:

Out of my SQL
INS_DIFFU=DATEDIFF(D,T1.CONTRACTDATE,T2.GOVT_UFMIP_DATE_REMITTED),
INS_DIFFV=DATEDIFF(D,T1.CONTRACTDATE,T2.GOVT_VAFF_DATE_REMITTED),

Here I am trying to prepare my display field to and alpha field for printing and get the error below:


-***************************************
-*This is for the Number Days from Closing field*
-***************************************
XDIFFU/A4 =FTOA(INS_DIFFU,'(I4)',XDIFFU);
XDIFFV/A4 =FTOA(INS_DIFFV,'(I4)',XDIFFV);
DSPDFC/I10 = IF LNKEY NE LAST LNKEY AND DISPLNTYP EQ 'FHA' THEN XDIFFU
ELSE IF LNKEY NE LAST LNKEY AND DISPLNTYP EQ 'VA' THEN XDIFFV ELSE ' ';


-**************************
-*This is for the PASS/FAIL field*
-**************************
DSPASSFAIL/A4 = IF LNKEY NE LAST LNKEY AND DISPLNTYP EQ 'FHA' AND XDIFFU LE 10 THEN 'Pass'
ELSE IF LNKEY NE LAST LNKEY AND DISPLNTYP EQ 'VA' AND XDIFFV GT 10 THEN 'Fail' ELSE ' ';


(FOC266) IF .. THEN .. ELSE .. SYNTAX ERROR
0 ERROR AT OR NEAR LINE 174 IN PROCEDURE ADHOCRQ FOCEXEC *
(FOC280) COMPARISON BETWEEN COMPUTATIONAL AND ALPHA VALUES IS NOT ALLOWED
0 ERROR AT OR NEAR LINE 203 IN PROCEDURE ADHOCRQ FOCEXEC *
(FOC003) THE FIELDNAME IS NOT RECOGNIZED: DSPDFC

Any assistance would be appreciated

This message has been edited. Last edited by: FP Mod Chuck,
July 19, 2017, 04:57 PM
BabakNYC
quote:
XDIFFU LE 10

is an A4 field. it can't be less than the number 10.


WebFOCUS 8206, Unix, Windows
July 19, 2017, 05:00 PM
Don Garland
XDIFFU/A20 = FPRINT(INS_DIFFU,'D4',XDIFFU);



quote:
AND XDIFFU LE 10



-**************************
-*This is for the PASS/FAIL field*
-**************************
DSPASSFAIL/A4 = IF LNKEY NE LAST LNKEY AND DISPLNTYP EQ 'FHA' AND  INS_DIFFU LE 10 THEN 'Pass' 
ELSE IF LNKEY NE LAST LNKEY AND DISPLNTYP EQ 'VA' AND  INS_DIFFV GT 10 THEN 'Fail' ELSE ' ';  

This message has been edited. Last edited by: Don Garland,


WebFOCUS Administrator @ Worldpay FIS
PROD/DEV/TEST: 8204, SANDBOX: 8206 soon - BIP, Reportcaster, Resource Manager, EUM, HyperStage soon, DB: HIVE,Oracle,MSSQL
July 20, 2017, 08:39 AM
Martin vK
quote:
XDIFFU/A4 =FTOA(INS_DIFFU,'(I4)',XDIFFU);
XDIFFV/A4 =FTOA(INS_DIFFV,'(I4)',XDIFFV);
DSPDFC/I10 = IF LNKEY NE LAST LNKEY AND DISPLNTYP EQ 'FHA' THEN XDIFFU
ELSE IF LNKEY NE LAST LNKEY AND DISPLNTYP EQ 'VA' THEN XDIFFV ELSE ' ';


DSPDFC should also be a A4.


WebFocus 8206M, iWay DataMigrator, Windows, DB2 Windows V10.5, MS SQL Server, Azure SQL, Hyperstage, ReportCaster
July 21, 2017, 02:18 PM
tlbrydie
BabakNYC, Don Garland, Martin vK

Thank you all for your assistance....I really appreciate your help. Please consider this issue closed.