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] If -Then - Else syntax question

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] If -Then - Else syntax question
 Login/Join
 
Silver Member
posted
I have the following code and I'm receiving IF .. THEN .. ELSE .. SYNTAX ERROR. Could someone assist me please. I have the following:

Define..
DISP_DISB/MDYY MISSING ON=HDATE (CONTRACTDATE, 'MDYY' );
DISP_FHA/MDYY MISSING ON=HDATE (GOVT_UFMIP_DATE_REMITTED, 'MDYY' );
DISP_VA/MDYY MISSING ON=HDATE (GOVT_VAFF_DATE_REMITTED, 'MDYY' );

DISPLNTYP/A3= DECODE LOANTYPE (22 'FHA'
23 'FHA'
26 'VA'
27 'VA');

DSPDR/A10 = IF (LNKEY NE LAST LNKEY) AND (DISPLNTYP EQ 'FHA') THEN DISP_FHA
ELSE IF (LNKEY NE LAST LNKEY) AND (DISPLNTYP EQ 'VA') THEN DISP_VA ELSE ' ';

END

--Note: LNKEY is a numeric value

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
Hi tlbrydie

Try taking the parenthesis off from around your tests.


Thank you for using Focal Point!

Chuck Wolff - Focal Point Moderator
WebFOCUS 7x and 8x, Windows, Linux All output Formats
 
Posts: 2127 | Location: Customer Support | Registered: April 12, 2005Report This Post
Silver Member
posted Hide Post
Yes, I had previously tried that, just tried again...Did not work, same results
 
Posts: 38 | Location: Atlanta | Registered: June 14, 2005Report This Post
Virtuoso
posted Hide Post
Hi

It may be your FORMAT of A10 you are trying to assign a MDYY field to it. Have you tried DSPDR/MDYY?


Thank you for using Focal Point!

Chuck Wolff - Focal Point Moderator
WebFOCUS 7x and 8x, Windows, Linux All output Formats
 
Posts: 2127 | Location: Customer Support | Registered: April 12, 2005Report This Post
Silver Member
posted Hide Post
Chuck,

Thanks so much. That corrected my issue.

Thanks again...
 
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] If -Then - Else syntax question

Copyright © 1996-2020 Information Builders