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] COMPARISON BETWEEN COMPUTATIONAL AND ALPHA VALUES IS NOT ALLOWED

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[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: 38 | Location: Atlanta | Registered: June 14, 2005Report 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: 1853 | Location: New York City | Registered: December 30, 2015Report 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, 2005Report 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 8206M, iWay DataMigrator, Windows, DB2 Windows V10.5, MS SQL Server, Azure SQL, Hyperstage, ReportCaster
 
Posts: 168 | Registered: March 29, 2013Report 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: 38 | Location: Atlanta | Registered: June 14, 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] COMPARISON BETWEEN COMPUTATIONAL AND ALPHA VALUES IS NOT ALLOWED

Copyright © 1996-2020 Information Builders