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.
The documentation states: FLIP Propagates the field names in the original Master File to the alias names in the HOLD Master File and the alias names in the original Master File to the field names in the HOLD Master File.
So, I tried using CAR FIELDNAME=COUNTRY,COUNTRY,A10,FIELDTYPE=I,$ ... FIELDNAME=SALES,UNITS,I6,$
SET ASNAMES=FLIP
TABLE FILE CAR
PRINT COUNTRY
SALES
ON TABLE HOLD
END
in section : Example: Generating a HOLD File With SET ASNAMES=FLIP
Changing SET ASNAMES to FLIP propagates the AS name SALARY to the alias name in the HOLD Master File. In the ALPHA HOLD file, the other field names have been propagated to the alias names in the HOLD Master File, and default field names have been generated:
FILENAME=HOLD , SUFFIX=FIX , IOTYPE=STREAM, $
SEGMENT=HOLD, SEGTYPE=S1, $
FIELDNAME=F01, ALIAS=DEPARTMENT, USAGE=A10, ACTUAL=A10, $
FIELDNAME=F02, ALIAS=SALARY, USAGE=D12.2M, ACTUAL=A12, $
FIELDNAME=F03, ALIAS=PCT_INC, USAGE=F6.2, ACTUAL=A06, $
the HOLD Master File, and default field names have been generated
WF versions : Prod 8.2.04M gen 33, Dev 8.2.04M gen 33, OS : Windows, DB : MSSQL, Outputs : HTML, Excel, PDF In Focus since 2007
Posts: 2409 | Location: Montreal Area, Qc, CA | Registered: September 25, 2013
Hence one should not stop at the definition but look for details... What can I say? Isn't this misleading?
Definition ASNAMES=FLIP Propagates the field names in the original Master File to the alias names in the HOLD Master File and the alias names in the original Master File to the field names in the HOLD Master File. This seems straightforward enough, wouldn't you say?
Then an example: When you set the ASNAMES parameter to FLIP, for relational HOLD files, the field names from the original Master File or the AS names specified in the request become the alias names in the HOLD Master File as well as the column names in the generated relational table and the TITLE attributes in the HOLD Master File. The alias names in the original Master File become the field names in the HOLD Master File, except when there is an AS name, in which case the original field name becomes the HOLD field name.
And suddenly an exception: For SET ASNAMES=FLIP, for non-relational HOLD files, the field names from the original Master File or the AS names from the request become the alias names in the HOLD Master File, and default field names are generated in the form F01, F02, and so on.
Why, oh why? What is the rationale?
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, 2006
This is just an observation if you just have SET ASNAMES=ON the FIELDNAME in the hold file master is the name used in the AS but the ALIAS fields are name E01, E02 etc so not sure why it uses F01 (maybe for Flip) but it is consistent with how the product has always worked.
Regards
Thank you for using Focal Point!
Chuck Wolff - Focal Point Moderator WebFOCUS 7x and 8x, Windows, Linux All output Formats
Posts: 2127 | Location: Customer Support | Registered: April 12, 2005
Chuck, Way back then, when SET ASNAMES did not exist, one needed the Enn fields when the request used ACROSS (or a multi-set request) to distinguish between columns holding data from the same field. When SET ASNAMES=ON came along, the Enn fields stayed, by inertia. Now that we have this new feature SET ASNAMES=FLIP, the Fnn is quite unnecessary. At least give the user the choice, wouldn't you say?
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, 2006