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     Converting output from a HOLD file to -SET &MONTH

Read-Only Read-Only Topic
Go
Search
Notify
Tools
Converting output from a HOLD file to -SET &MONTH
 Login/Join
 
Guru
posted
We want to convert the output from a HOLD file:
TABLE FILE SECRET_DATA
PRINT MONTH
BY YEAR
BY HIGHEST 1 MONTH
WHERE YEAR EQ '06'
IF RECORDLIMIT EQ 1
ON TABLE HOLD AS HOLD0
END
-RUN
-DEFAULTS &YR = '06';
-SET &MO = HOLD0.MONTH;
-SET &YR_MO = '20' | &YR | &MO ;
-SET &YEAR = '20' | &YR;
-SET &YR_MO_DA = '20' | &YR | &MO | '01';

but the &MO passed through is the literal text
'HOLD0.MONTH'.



If anybody can, Focal Point can!


Sandy Kadish
Dev: 8.2.04- PostgreSQL
Test: 8.2.04 - PostgreSQL
Prod: 8.2.04 - PostgreSQL
 
Posts: 238 | Location: Atlanta, GA/Rehovot, Israel | Registered: May 06, 2003Report This Post
Expert
posted Hide Post
Sandy,

You can not pass data direct from a file to a DM variable in this manner, you have to read it in first -

TABLE FILE SECRET_DATA
BY HIGHEST year
BY HIGHEST 1 month 
WHERE year EQ '2006'
IF RECORDLIMIT EQ 1
ON TABLE SAVE AS HOLD0 FORMAT ALPHA
END
-RUN

-DEFAULTS &YR = '06';

-READ HOLD0 &Year.A4. &MO.A2.
-*SET &MO = HOLD0.MONTH;
-SET &YR_MO = '20' | &YR | &MO ;
-SET &YEAR = '20' | &YR;
-SET &YR_MO_DA = '20' | &YR | &MO | '01';


T



In FOCUS
since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2  
WebFOCUS App Studio 8.2.06 standalone on Windows 10 
 
Posts: 5694 | Location: United Kingdom | Registered: April 08, 2004Report This Post
Platinum Member
posted Hide Post
I always thought that would be a great new feature for WebFOCUS, the ability to set an &var directly from the TABLE request without having to do the hold file and then READ.

Something like this.

TABLE FILE SECRET_DATA
PRINT MONTH SET &MO
YEAR SET &YR
BY YEAR
BY HIGHEST 1 MONTH
WHERE YEAR EQ '06'
IF RECORDLIMIT EQ 1
END

-* This would display the value from the SET
-TYPE &MO
-TYPE &YR


(Production: WebFOCUS 7.1.3 on Win 2K/IIS 6/CGI)
(Test: WebFOCUS 7.1.3 on Win 2K/IIS 6/CGI)
 
Posts: 104 | Location: Boston | Registered: April 23, 2003Report 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     Converting output from a HOLD file to -SET &MONTH

Copyright © 1996-2020 Information Builders