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     how to get return values ?

Read-Only Read-Only Topic
Go
Search
Notify
Tools
how to get return values ?
 Login/Join
 
Silver Member
posted
lets say we have something like this:

TABLE FILE my_table
SUM
COMPUTE
MY_VALUE/I11 = VAL1+VAL2;
ON TABLE HOLD AS MY_HOLD
END

how should I access computed values?
For instance, I want to write something like this:

IF MY_HOLD.MY_VALUE(0) EQ '0' THEN GOTO Somethere;

or

-SET &MY_NEXT_FEX = MY_HOLD.MY_VALUE(3);
TABLE FILE &MY_NEXT_FEX
PRINT *
END


Thanks,
 
Posts: 35 | Location: Vilnius, Lithuania | Registered: January 03, 2005Report This Post
Guru
posted Hide Post
Hope this will help.

SET HOLDLIST = PRINTONLY
TABLE FILE CAR
SUM
COMPUTE COST/I11 = RETAIL_COST + DEALER_COST;
ON TABLE HOLD AS H0 FORMAT ALPHA
END
-RUN
-READ H0 &COST.I11
-TYPE &COST

-IF &COST EQ 0 THEN GOTO :SKIP1 ;
-EXIT

-:SKIP1
-TYPE At Skip1
-EXIT
 
Posts: 406 | Location: Canada | Registered: May 31, 2004Report This Post
Silver Member
posted Hide Post
I got an ansaver from Information Builders Customer Support(Wen Gouw, dutch office).

Technique for reading an unknown number of records and setting some variables:

TABLE FILE CAR
PRINT COUNTRY
ON TABLE HOLD AS WW
END
-RUN
-SET &N=0;
-*
-:AGAIN
-SET &N=&N+1;
-READ WW &CO.&N.A10
-IF &IORETURN EQ 0 THEN GOTO :AGAIN;
-*
-SET &N=&N-1;
-? &


Thanks to CurtisA and Wen Gouw!
 
Posts: 35 | Location: Vilnius, Lithuania | Registered: January 03, 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     how to get return values ?

Copyright © 1996-2020 Information Builders