Statalist The Stata Listserver

[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: RE: help required using the -ds- command

From   "Newson, Roger B" <>
To   <>
Subject   st: RE: help required using the -ds- command
Date   Wed, 28 Feb 2007 12:58:41 -0000

A possible solution to your problem might use the -descsave- package,
downloadable from SSC (for Stata 9 users) or from my website (for Stata
8 users). The -descsave- package is an extended version of -describe-
and/or -ds-. It can list the names (and nothing else) in one no-frills
column if you type 

descsave, list(name, clean noobs noheader)

Alternatively, it can produce lists of variable attributes including
names, variable labels, value labels, formats and/or characteristics,
using all the power of official Stata's -list- command. Alternatively,
it can output these variable attributes to a disk file or to the memory.

I hope this helps.

Best wishes


Roger Newson
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

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

-----Original Message-----
[] On Behalf Of Eamonn
Sent: 28 February 2007 12:21
Subject: st: help required using the -ds- command

Dear Statalist

I'm am trying to obtain a list of my variable names in one column ( I
have over 100 variables).  I haven't achieved this but I have been
experimenting with the -ds- command, specifically the options
'varwidth(#)' and 'skip(#)'.  Can anyone help with this?

One small point, the help file for the -ds- option 'skip' states the
default is skip(12) , but if I use skip(11) the following error is
returned 'skip() should be in the range 1..10'.


The Institute of Cancer Research: Royal Cancer Hospital, a charitable
Company Limited by Guarantee, Registered in England under Company No.
534147 with its Registered Office at 123 Old Brompton Road, London SW7

This e-mail message is confidential and for use by the addressee only.
If the message is received by anyone other than the addressee, please
return the message to the sender by replying to it and then delete the
message from your computer and network.
*   For searches and help try:

*   For searches and help try:

© Copyright 1996–2017 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index