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

RE: st: RE: -foreach-, local macro, -split- command

From   "Nick Cox" <[email protected]>
To   <[email protected]>
Subject   RE: st: RE: -foreach-, local macro, -split- command
Date   Tue, 8 Sep 2009 23:03:51 +0100

No. Taking your question backwards from the end, the -split- command
itself can only work on single variables at a time, and the same 244
chars limit bites just as hard. 

Your problem is clearer this way, but I can't see an alternative to
working with several variables simultaneously, or indeed why you think
that's so bad. 

There is no practical limit to concatenating string variables' values
into a macro, and working on those macros, but I am not sure you are
going to be much better off. 

[email protected] 

David Torres

I'd like to create a separate variable for all of the values attached  
to each individual in my data, which are now only recorded in a single  
variable.  That is, there is one string that includes info at time1,  
time2, time3, and so on--separated by a space only.  Some individuals  
have strings that exceed the variable space.  I understand the issue  
there.  I have tried separating out the times in my code, but it gets  
a bit cumbersome.  I am simply hoping that there is a way to call the  
values attached to an individual without needing to first have a  
variable with the information stored.  Can I not create another place  
to store the values, or rather strings, and then get what I want by  
using the split command.

id  school city  'waisscores'
1   Temple  Philly   'HighNormal Borderline  ....  Dull'
2   UMich   Ann Arbor  '.............'

For those who have scores that exceed available space, some of the  
information is lost when the split command is used.  Can I get around  
this given that the values are certainly in memory and are connected  
to the individuals who earned them?

I hope that was clearer.

*   For searches and help try:

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