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     assign column value to variable,. . . . .example

Read-Only Read-Only Topic
Go
Search
Notify
Tools
assign column value to variable,. . . . .example
 Login/Join
 
Member
posted
Is it correct the next syntaxis???
.......

BY
ESTADO

-SET &EST ='
END

Thanks!!!!
 
Posts: 28 | Registered: January 12, 2006Report This Post
<JG>
posted
No. save it and read it.
 
Report This Post
Guru
posted Hide Post
TABLE FILE CAR
PRINT MAX.CAR
ON TABLE HOLD
END
-RUN
-READ HOLD &CAR.A16
-TYPE Car: &CAR
 
Posts: 406 | Location: Canada | Registered: May 31, 2004Report This Post
Member
posted Hide Post
Ok thanks a lot!
 
Posts: 28 | Registered: January 12, 2006Report This Post
Platinum Member
posted Hide Post
Lets say that the HOLD is a D20.2%

How would the LINE look
-READ HOLD &Car.A16

Would it be:
-READ HOLD &CAR.D20.2%


Currenly working @ Learning Circle Education Services
Previously worked @ Nationwide Insurance
Prod: WebFOCUS 7.6.11


Test: WebFOCUS 7.6.11


Dev: WebFOCUS 7.6.11
 
Posts: 125 | Location: Columbus, Ohio | Registered: March 31, 2006Report This Post
Platinum Member
posted Hide Post
Here is what I am trying to do:


TABLE FILE SQLOUT50
SUM
AUX0/D20.2%
AUX5/D20.2%
AUX6/D20.2%
AUX7/D20.2%
ON TABLE SET PAGE-NUM OFF
ON TABLE SET FORMULTIPLE ON
ON TABLE NOTOTAL
ON TABLE HOLD AS MEDIAN FORMAT FOCUS
END
TABLE FILE
PRINT AUX0/D20.2
ON TABLE HOLD
END
-RUN
-READ HOLD &AUX0.D20.2.
-*TYPE AUX0: &AUX0


Currenly working @ Learning Circle Education Services
Previously worked @ Nationwide Insurance
Prod: WebFOCUS 7.6.11


Test: WebFOCUS 7.6.11


Dev: WebFOCUS 7.6.11
 
Posts: 125 | Location: Columbus, Ohio | Registered: March 31, 2006Report This Post
Guru
posted Hide Post
You can only specifiy A or I formats in the -READ command.
Amper variables are used elsewhere in code as if they are a piece of text that you typed in. That text will contain alphanumeric characters or numeric characters.

How do you want to use the variable once it is populated?
If you are going to use it as a numeric value somewhere I'd probably use the edit option 'c' to suppress the commas in the value.

In your example ...
ON TABLE HOLD AS MEDIAN FORMAT FOCUS
END
TABLE FILE MEDIAN
PRINT AUX0/D20.2c
ON TABLE HOLD FORMAT ALPHA
END
-RUN
-READ HOLD &AUX0.A20.

If the value was 1234567.89...
Whenever you use &AUX0 in your code it's as if you typed in the numeric value.

I hope that makes sense.


ttfn, kp


Access to most releases from R52x, on multiple platforms.
 
Posts: 346 | Location: Melbourne Australia | Registered: April 15, 2003Report This Post
Platinum Member
posted Hide Post
Thank you, that works! I had to use TRUNCATE a little and modify it a bit more to fit my needs. But you solved my issue!!!

Thanks


Currenly working @ Learning Circle Education Services
Previously worked @ Nationwide Insurance
Prod: WebFOCUS 7.6.11


Test: WebFOCUS 7.6.11


Dev: WebFOCUS 7.6.11
 
Posts: 125 | Location: Columbus, Ohio | Registered: March 31, 2006Report 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     assign column value to variable,. . . . .example

Copyright © 1996-2020 Information Builders