Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: st: -ssc hot- broken?
Sergiy Radyakin <firstname.lastname@example.org>
Re: st: -ssc hot- broken?
Mon, 16 Dec 2013 13:11:23 -0500
the correspondence of Stata version vs .dta specification is here:
This table describes the format of the dataset that is produced by the
corresponding Stata. The rule of thumb is that newer formats are not
supported in older Statas.
Kit's statement mentioned Stata 11 (without mentioning the update).
The update you mention is the final update in the 11.x generation and
more info is here:
http://www.stata.com/statalist/archive/2011-08/msg00935.html Thank you
for mentioning it.
I should not have been so categorical either, but was referring to 11,
not 11.2. As always, updating Stata from StataCorp's updates is better
then installing custom patches (e.g. mine here).
To find out the file format specification for a dta file on disk, type in Stata:
Then in the output look for the first byte. Then use the topmost table here:
for the reference. Apparently I will need to update it to reflect that
Stata 11.2 can read newer format than it can save.
If anyone still has datasets produced with Stata prior to version 5 I
would very much want to have a look at them.
Best, Sergiy Radyakin
On Mon, Dec 16, 2013 at 12:42 PM, Richard Williams
> At 12:16 PM 12/16/2013, Sergiy Radyakin wrote:
>> On Sun, Dec 15, 2013 at 8:06 AM, Christopher Baum <email@example.com> wrote:
>> > <>
>> > On Dec 15, 2013, at 2:33 AM,Dirk wrote:
>> >> Could it be that the command -ssc hot- is broken? I am receiving the
>> >> error message
>> >> file http://repec.org/docs/sschotPPPcur.dta not Stata format
>> >> r(610);
>> >> Dirk
>> > The routine that creates the file used by -ssc hot- contains the line
>> > qui saveold sschotPPPcur, replace
>> > which should, run under Stata 13.1, create a file readable by Stata 11
>> > or Stata 12.
>> Kit, Stata 13 can not create a dta file readable by Stata 11. Stata 13
>> saves datasets in specification 117, and with saveold in specification
>> 115. Stata 11 supports up to 114.
> I don't know if something got fixed somewhere but the ssc hot command now
> works for me under Stata 13.1, 12.1 and 11.2.
> Sergiy, you are much more the expert on file types than I am, but I used
> saveold in Stata 13.1 and I could read the resulting file in 11.2. My vague
> recall is that one of the last patches to 11.2 enabled it to read Stata 12
> You've no doubt answered this before but how can I tell what specification
> is being used?
>> Daniel, -use13- is designed to specifically read Stata 13 (new format)
>> datasets in specification 117. It should not read the datasets saved
>> from Stata13 with the saveold command (specification 115), but is
>> expected to fail with "file format error" error 610 as shown here:
>> If it did work for you, then either Kit's scripts temporarily produced
>> a file in specification 117, or there is a bug in -use13-, of which I
>> am very interested to hear.
>> A Windows program SaveTo9.exe (callable from batch files and from
>> Stata) by me (available from
>> http://www.radyakin.org/transfer/saveto9/cs/index.htm) will convert a
>> Stata dataset to the format compatible with Stata 9, which is
>> sufficient to store information currently communicated in the quoted
>> If it is not possible to update the server side to reduce the ouput
>> file version, it is possible to do it on the client's side. Here is a
>> patched version of ssc_whatshot.ado of Stata 10:
>> Note that this is a modified StataCorp's file. It normally resides in
>> ado\base or ado\update. I suggest you do not modify the file there,
>> but rather do an:
>> set adopath ++ "YOUR PATH"
>> in your profile.do somewhere, and place the files there.
>> The patch requires saveto9.exe to be located in the same folder and
>> will work in Windows only. With that satisfied, it works just fine in
>> Stata 10:
>> Hope this helps.
>> Best, Sergiy Radyakin
>> > Kit
>> > Research Papers in Economics (RePEc)
>> > http://repec.org
>> > *
>> > * For searches and help try:
>> > * http://www.stata.com/help.cgi?search
>> > * http://www.stata.com/support/faqs/resources/statalist-faq/
>> > * http://www.ats.ucla.edu/stat/stata/
>> * For searches and help try:
>> * http://www.stata.com/help.cgi?search
>> * http://www.stata.com/support/faqs/resources/statalist-faq/
>> * http://www.ats.ucla.edu/stat/stata/
> Richard Williams, Notre Dame Dept of Sociology
> OFFICE: (574)631-6668, (574)631-6463
> HOME: (574)289-5227
> EMAIL: Richard.A.Williams.5@ND.Edu
> WWW: http://www.nd.edu/~rwilliam
> * For searches and help try:
> * http://www.stata.com/help.cgi?search
> * http://www.stata.com/support/faqs/resources/statalist-faq/
> * http://www.ats.ucla.edu/stat/stata/
* For searches and help try: