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     [CLOSED] Hold files change fields to uppercase

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] Hold files change fields to uppercase
 Login/Join
 
Silver Member
posted
When I am holding a file while changing a fieldname via ASNAMES in mixed case, the holdmast moves it to upper case. Is there a magic switch that keeps the MY fieldname case intact?

code:
SET ASNAMES=ON

TABLE FILE CAR
PRINT CAR AS MyCar
ON TABLE HOLD AS MYHOLD
END

The holdmast shows only MYCAR and not MyCar.


Thanks,
Shawn

v767 on windows

This message has been edited. Last edited by: Kerry,


wf 767 running on w2k3 srvr
 
Posts: 46 | Registered: September 22, 2006Report This Post
Expert
posted Hide Post
I'm running 765 on AIX and this works:

DEFINE FILE CAR
Profit/D12=RCOST-DCOST;
END
TABLE FILE CAR
SUM SALES Profit
BY COUNTRY
ON TABLE HOLD FORMAT ALPHA
END
-RUN
? HOLD HOLD
TABLE FILE HOLD 
PRINT *
END


Ginny
---------------------------------
Prod: WF 7.7.01 Dev: WF 7.6.9-11
Admin, MRE,self-service; adapters: Teradata, DB2, Oracle, SQL Server, Essbase, ESRI, FlexEnable, Google
 
Posts: 2723 | Location: Ann Arbor, MI | Registered: April 05, 2006Report This Post
Silver Member
posted Hide Post
Sorry guys, I updated (changed) the original post.

It didn't come out right the first time.


wf 767 running on w2k3 srvr
 
Posts: 46 | Registered: September 22, 2006Report This Post
Expert
posted Hide Post
Here is part of the documentation on ASNAMES. I personally don't use mixed case field names.

quote:
Reference: Usage Notes for Controlling Field Names in HOLD Files
If no AS phrase is specified for a field, the field name from the original Master File is used. The TITLE attribute specified in the Master File is not used unless SET HOLDATTR was previously issued.
To ensure that fields referenced more than once in a request have unique names in the HOLD Master File, use SET ASNAMES.
All characters are converted to uppercase.
Special characters and blanks used in the AS phrase are preserved in the field name that is created when SET ASNAMES is used. Use single quotation marks around the non-standard field names when referring to them in the newly created Master File.
Text specified in an AS phrase that contains more than 66 characters is truncated to 66 characters in the Master File.
Aliases are not carried over into the HOLD Master File. A new set of aliases is supplied automatically. These aliases are named E01 for the first field, E02 for the second, and so forth.
Duplicate field names may occur in the newly created Master File as a result of truncation or the way AS phrases have been specified. In this case, refer to the fields by their aliases (E01, E02, and so forth).


Ginny
---------------------------------
Prod: WF 7.7.01 Dev: WF 7.6.9-11
Admin, MRE,self-service; adapters: Teradata, DB2, Oracle, SQL Server, Essbase, ESRI, FlexEnable, Google
 
Posts: 2723 | Location: Ann Arbor, MI | Registered: April 05, 2006Report This Post
Silver Member
posted Hide Post
Thanks Ginny...
Where did you find that info? After doing many searches on case, fieldname, and asnames I gave up.
I don't usually use mixed case either, however I am following the tradition here. Some wise-guy thought using mixed case was more friendly to the adhoc users... while forgetting about the developers.


wf 767 running on w2k3 srvr
 
Posts: 46 | Registered: September 22, 2006Report This Post
Expert
posted Hide Post
I went to Help in Dev Studio, typed in ASNAMES and found this stuff farther down in the text.

Francis gets a kick out of me finding things in the documentation. Smiler

I agree with you, mixed case is a pain.


Ginny
---------------------------------
Prod: WF 7.7.01 Dev: WF 7.6.9-11
Admin, MRE,self-service; adapters: Teradata, DB2, Oracle, SQL Server, Essbase, ESRI, FlexEnable, Google
 
Posts: 2723 | Location: Ann Arbor, MI | Registered: April 05, 2006Report This Post
Expert
posted Hide Post
I actually prefer mixed case for defined fields, to indicate its defined, instead of adding a D_, I wish the ASNAMES would respect the case.


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

 
Posts: 6347 | Location: 33°49'23.0"S, 151°11'41.0"E | Registered: October 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     [CLOSED] Hold files change fields to uppercase

Copyright © 1996-2020 Information Builders