Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: saved data loosing its sorted by label


From   "Ray, Bryan" <[email protected]>
To   [email protected]
Subject   st: saved data loosing its sorted by label
Date   Mon, 1 Mar 2004 19:53:36 -0500

I sort a dataset and save it. When I use the dataset as the using data of a
merge, I am told that it is not sorted.

In particular, I have the following code embedded in a program:

winexec "C:\Program Files\StatTransfer7\st" "$path\bid_product_fix.stc"

use "$path\bid_product_fix.dta", clear
sort product
describe
save "$path\bid_product_fix.dta", replace

use "$path\all_bid.dta"
sort product
merge product using "$path\bid_product_fix.dta"


This is the output:

Contains data from <SNIPPED FULL PATH>\bid_product_fix.dta
  obs:           340                          
 vars:             2                          1 Mar 2004 19:42
 size:        65,620 (99.9% of memory free)
----------------------------------------------------------------------------
---
              storage  display     value
variable name   type   format      label      variable label
----------------------------------------------------------------------------
---
product         str182 %182s                  
product_stand~d str7   %7s                    
----------------------------------------------------------------------------
---
Sorted by:  product
file <SNIPPED FULL PATH>\bid_product_fix.dta saved
using data not sorted


Any thoughts would be much appreciated.

Bryan Ray



_________________________________________________________________ 

This e-mail and any attachments may be confidential or legally privileged.
If you received this message in error or are not the intended recipient, you
should destroy the e-mail message and any attachments or copies, and you are
prohibited from retaining, distributing, disclosing or using any information
contained herein. Please inform us of the erroneous delivery by return
e-mail. 

Thank you for your cooperation. 
_________________________________________________________________ 


*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



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