Focal Point
[CLOSED] Hold files change fields to uppercase

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/25010971

February 23, 2009, 05:39 PM
ShawnS
[CLOSED] Hold files change fields to uppercase
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
February 23, 2009, 05:49 PM
GinnyJakes
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
February 23, 2009, 05:54 PM
ShawnS
Sorry guys, I updated (changed) the original post.

It didn't come out right the first time.


wf 767 running on w2k3 srvr
February 23, 2009, 06:00 PM
GinnyJakes
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
February 23, 2009, 06:13 PM
ShawnS
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
February 23, 2009, 06:16 PM
GinnyJakes
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
February 24, 2009, 03:30 PM
Waz
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!