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 windowsThis 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
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).
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.