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.



Read-Only Read-Only Topic
Go
Search
Notify
Tools
Swapping Columns
 Login/Join
 
<Umar Farook S>
posted
Hi,

I have 4 columns
Notional amt
Notional Currency
Sec notional amt
Sec notional Currency

My condition is like this
1.
if
Notional Currency equalto'USD'
then
Notional equalto Notional amt
and
Foreign equalto Sec notional amt

2.
if
Notional Currency notequalto 'USD'
then
Notional equalto Sec notional amt
and
Foreign equalto Notional amt

Please help me out on this issue
 
Report This Post
Virtuoso
posted Hide Post
this isn't a very complicated condition if you take a minute to think through the logic:
NOTIONAL=IF NOTIONAL_CURRENCY EQ 'USD' THEN NOTIONAL_AMT ELSE SEC_NOTIONAL_AMT;

and

FOREIGN=IF NOTIONAL_CURRENCY EQ 'USD' THEN SEC_NOTIONAL_AMT ELSE NOTIONAL_AMT;

You can only define one field at a time - don't make it more complicated than it is.


Regards,

Darin



In FOCUS since 1991
WF Server: 7.7.04 on Linux and Z/OS, ReportCaster, Self-Service, MRE, Java, Flex
Data: DB2/UDB, Adabas, SQL Server Output: HTML,PDF,EXL2K/07, PS, AHTML, Flex
WF Client: 77 on Linux w/Tomcat
 
Posts: 2298 | Location: Salt Lake City, Utah | Registered: February 02, 2007Report This Post
Gold member
posted Hide Post
It's pretty much the way you specified it:
DEFINE FILE filename
NOTATIONAL_AMT1/format=IF NOTATION_CURRENCY EQ 'USD' THEN NOTATIONAL_AMT ELSE SEC_NOTATIONAL_AMT;
FOREIGN/format = IF NOTATION_CURRENCY EQ 'USD' THEN SEC_NOTATION_AMT ELSE NOTATIONAL_AMT;
END
Of course, you have to put in the correct format, and use the fieldnames that correspond to your data, but hopefully this makes sense. The DEFINEs can also be in the master file Description. Please note: I used different names for my DEFINE fields than for the original fields. I always recommend that to avoid confusion.


WEFOCUS - All releases starting at 4.3.6
MF FOCUS -- All releases starting at 3.8.68
OS/Platfor _ Predominately Z/OS, but all others as swell
Expected Output Format -- *
 
Posts: 60 | Location: 2 penn | Registered: May 22, 2003Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic


Copyright © 1996-2020 Information Builders