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     [Share] SET HOLDLIST=PRINTONLY, ASNAMES=ON and DST. - a side effect

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[Share] SET HOLDLIST=PRINTONLY, ASNAMES=ON and DST. - a side effect
 Login/Join
 
Virtuoso
posted
An interesting bug(?) feature(?).
See the following:
 
 SET ASNAMES=OFF
 SET HOLDLIST=ALL
 TABLE FILE CAR
 PRINT DST.MPG
 ON TABLE HOLD AS TMPOBD
 END
 ?FF TMPOBD

 FILENAME=  TMPOBD
 MPG           E01           D6
 MPG           E02           D6
 
SET ASNAMES=OFF
SET HOLDLIST=PRINTONLY
TABLE FILE CAR
PRINT DST.MPG
ON TABLE HOLD AS TMPOBD
END
?FF TMPOBD

FILENAME=  TMPOBD
MPG           E01           D6


 SET ASNAMES=ON
 SET HOLDLIST=ALL
 TABLE FILE CAR
 PRINT DST.MPG
 ON TABLE HOLD AS TMPOBD
 END
 ?FF TMPOBD

 FILENAME=  TMPOBD
 DISTINCT      E01           D6
 MPG           E02           D6


SET ASNAMES=ON
SET HOLDLIST=PRINTONLY
TABLE FILE CAR
PRINT DST.MPG
ON TABLE HOLD AS TMPOBD
END
?FF TMPOBD

FILENAME=  TMPOBD
DISTINCT      E01           D6


Say that you want to get all the distinct values of MPG in order to JOIN them to some other file.
If you are not aware that ASNAMES=ON and HOLDLIST=PRINTONLY (they are set in EDASPROF for example), your JOIN is going to cause an error: MPG unknown in file TMPOBD.


Daniel
In Focus since 1982
wf 8.202M/Win10/IIS/SSA - WrapApp Front End for WF

 
Posts: 1980 | Location: Tel Aviv, Israel | Registered: March 23, 2006Report This Post
Master
posted Hide Post
SET ASNAMES = ON
SET HOLDLIST = PRINTONLY
TABLE FILE CAR
	SUM DST.MPG AS 'MPG'
ON TABLE HOLD AS TMPOBD
END
?FF TMPOBD


?


_____________________
WF: 8.0.0.9 > going 8.2.0.5
 
Posts: 668 | Location: Veghel, The Netherlands | Registered: February 16, 2010Report This Post
Virtuoso
posted Hide Post
Dave,

Of course with the AS clause MPG will be the fieldname.

At a customer site there was
  
TABLE FILE CAR
	PRINT DST.MPG 
ON TABLE HOLD AS TMPOBD
END

after which a JOIN using MPG.
All this worked well until somebody put
SET HOLDLIST=PRINTONLY in EDASPROF.

To be free of side effects, I usually code the SET parameters in the TABLE request.

Cave focum!


Daniel
In Focus since 1982
wf 8.202M/Win10/IIS/SSA - WrapApp Front End for WF

 
Posts: 1980 | Location: Tel Aviv, Israel | Registered: March 23, 2006Report This Post
Master
posted Hide Post
Oh yeah,

I misread your post. I though it was more of a : "look what happend!".

I thought is was an easy fix.



...and yes. This happens. But that goes for all settings in EDASPROF.


_____________________
WF: 8.0.0.9 > going 8.2.0.5
 
Posts: 668 | Location: Veghel, The Netherlands | Registered: February 16, 2010Report 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     [Share] SET HOLDLIST=PRINTONLY, ASNAMES=ON and DST. - a side effect

Copyright © 1996-2020 Information Builders