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" <>
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\"

use "$path\bid_product_fix.dta", clear
sort product
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

Thank you for your cooperation. 

*   For searches and help try:

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