Focal Point Banner
Community Center Education Summit Technical Support User Groups
Let's Get Social!

Facebook Twitter LinkedIn YouTube
Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [SOLVED] COMPARISON BETWEEN COMPUTATIONAL AND ALPHA VALUES IS NOT ALLOWED
Go
New
Search
Notify
Tools
Reply
  
[SOLVED] COMPARISON BETWEEN COMPUTATIONAL AND ALPHA VALUES IS NOT ALLOWED
 Login/Join
 
Silver Member
posted
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,
 
Posts: 34 | Location: Atlanta | Registered: June 14, 2005Reply With QuoteReport This Post
Virtuoso
posted Hide Post
quote:
XDIFFU LE 10

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


WebFOCUS 8206, Unix, Windows
 
Posts: 1691 | Location: New York City | Registered: December 30, 2015Reply With QuoteReport This Post
Guru
posted Hide Post
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
 
Posts: 291 | Location: Greater Cincinnati  | Registered: May 11, 2005Reply With QuoteReport This Post
Platinum Member
posted Hide Post
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 8203M, iWay DataMigrator, Windows, DB2 Windows V10.5, MS SQL Server, Azure SQL, Hyperstage, ReportCaster
 
Posts: 154 | Registered: March 29, 2013Reply With QuoteReport This Post
Silver Member
posted Hide Post
BabakNYC, Don Garland, Martin vK

Thank you all for your assistance....I really appreciate your help. Please consider this issue closed.
 
Posts: 34 | Location: Atlanta | Registered: June 14, 2005Reply With QuoteReport This Post
  Powered by Social Strata  
 

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [SOLVED] COMPARISON BETWEEN COMPUTATIONAL AND ALPHA VALUES IS NOT ALLOWED

Copyright © 1996-2018 Information Builders, leaders in enterprise business intelligence.