Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: st: RE: inputst and variable name case

From   Roger Newson <>
To   "" <>
Subject   Re: st: RE: inputst and variable name case
Date   Thu, 18 Nov 2010 17:38:10 +0000

I would agree that Nick Cox's suggestion to use -renvars- is probably the best solution to Scott's problem. However, in the more general case of customizing things at the Stat/Transfer level, the user also has the option of writing a Stat/Transfer .stcmd command file. Such a command file can then be called from Stata using -stcmd-. As in:

stcmd mystcom.stcmd

You can consult the .pdf documentation for Stat/Transfer to find more about -.stcmd- files, if you want to get deeper into the technical side of Stat/Transfer.

I hope this helps.

Best wishes


Roger B Newson BSc MSc DPhil
Lecturer in Medical Statistics
Respiratory Epidemiology and Public Health Group
National Heart and Lung Institute
Imperial College London
Royal Brompton Campus
Room 33, Emmanuel Kaye Building
1B Manresa Road
London SW3 6LR
Tel: +44 (0)20 7352 8121 ext 3381
Fax: +44 (0)20 7351 8322
Web page:
Departmental Web page:

Opinions expressed are those of the author, not of the institution.

On 18/11/2010 17:22, Nick Cox wrote:
-inputst- is from Roger Newson's package -stcmd-, available in various places.

You can modify any of those programs if you like, but that modified program then becomes your responsibility. But I think it's much easier to do this in other ways. For example, with -renvars- from the Stata Journal,

. renvars, lower

is all you need. Type -findit renvars- and download from the SJ 5-4 files.


Scott N. Bronson

I am importing a SAS 9.2 dataset into Stata using the inputst command.  While I can import the data fine using inputst, the SAS variable names are a mixture of upper case and lower case, and I would like to have them to all be lower case in Stata.  I know which StatTransfer Command Processor commands that I want to use, but I am having difficulty understanding how (and whether) I can modify the inputst and/or stcmd .ado files to force all imported variable names to be lower case.  Any help would be much appreciated!

*   For searches and help try:
*   For searches and help try:

© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index