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     [CLOSED] Maximum Value

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] Maximum Value
 Login/Join
 
Gold member
posted
Hi All
I am looking for the highest value of a field

need something like that

Order # Highest
109551 109551
109550 109551
109546 109551

The goal is to create a error message to tell user that the order number he entered is to high or that it was cancelled

The highest number will change every day so next run the max number could be 109558 or 559

I have tried sum (lst), Sum (max), cant get that result

Any help would be appreciated

This message has been edited. Last edited by: FP Mod Chuck,


7.6. / Win 7 / Excel
 
Posts: 56 | Location: St-Laurent QC Canada | Registered: February 04, 2009Report This Post
Platinum Member
posted Hide Post
TABLE FILE CAR
PRINT DEALER_COST
BY COUNTRY
BY CAR
END
-*
-** Maximum DEALER_COST per CAR
-*
TABLE FILE CAR
SUM MAX.DEALER_COST
BY COUNTRY
BY CAR
END
-*
-** Maximum DEALER_COST per COUNTRY
-*
TABLE FILE CAR
SUM MAX.DEALER_COST
BY COUNTRY
END
-*
-** Maximum DEALER_COST per table
-*
TABLE FILE CAR
SUM MAX.DEALER_COST
END


WebFocus 8.201M, Windows, App Studio
 
Posts: 227 | Location: Lincoln Nebraska | Registered: August 12, 2008Report This Post
Guru
posted Hide Post
I'm guessing that you plan to have a report that prompts the user for an order number and you want one of the following results;

1. If the order number entered is found in the data set and is not canceled, display the report.
2. If the order number entered is found in the data set but is canceled, an error message displays indicating that the order was canceled.
2. If the order number entered is not found in the data set, an error message displays that the data was not found.


How does the highest order number factor into this scenario?

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
Gold member
posted Hide Post
Hi

The report send only 1 line ( Status of order ),
Valid order number with details of order or a line saying that the order number is invalid

Today, our last PO is 109698
If a user enter in the prompt box 109700, he will get a message that says invalid but because we haven't reach 109700, it is not yet valid or invalid, it just does not exist

Anyway, I am closing this request as we decided not to spend more time on that report.


Thank you all any way


7.6. / Win 7 / Excel
 
Posts: 56 | Location: St-Laurent QC Canada | Registered: February 04, 2009Report This Post
Expert
posted Hide Post
How about this:
TABLE FILE [WHATEVER]
PRINT [A FIELD]
WHERE PO_NUMBER EQ 109700
ON TABLE HOLD
END
-RUN
-IF &RECORDS EQ 0 THEN GOTO NoPOfound ELSE GOTO POfound; 

-POfound
-*Run a good report...
-GOTO TheEndOfThis

-NoPOfound
-* Display an appropriate message...
-GOTO TheEndOfThis

-TheEndOfThis

PS: Hi Don...




   In FOCUS Since 1983 ~ from FOCUS to WebFOCUS.
   Current: WebFOCUS Administrator at FIS Worldpay | 8204, 8206
 
Posts: 3132 | Location: Tennessee, Nashville area | Registered: February 23, 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     [CLOSED] Maximum Value

Copyright © 1996-2020 Information Builders