Text to SPSS and Back?

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Text to SPSS and Back?

Secrist, Kevin
Dear SPSS list members,

I was wondering if there was a process to bring a text file into spss, run a match file to extract a line if a variable matches another file variable, and then send it back out as a text file?

Thanks in advance,

Kevin Secrist, Administrative Analyst, Associate
ASD
Butte County Behavioral Health
CONFIDENTIALITY NOTICE:  This e-mail transmission, and any documents or messages attached to it, may contain confidential information that is legally privileged.  If you are not the intended recipient, or a person responsible for delivering this e-mail to the intended recipient, then you are (1) notified that any disclosure, copying, distribution, saving, reading or use of this information is strictly prohibited, (2) requested to discard and delete this e-mail and any attachments, and (3) requested to immediately notify us by e-mail that you mistakenly received this message [hidden email], fax (530) 895-6548, or telephone (530) 879-3305.  Thank you.

Far better an approximate answer to the right question, which is often vague, than the exact answer to the wrong question, which can always be made precise.
Ann. Math. Stat. 33 (1962) - John w. Tukey
Reply | Threaded
Open this post in threaded view
|

Re: Text to SPSS and Back?

Dennis Deck
One approach, assuming the input string is Str and search string is
Srch:

TEMPORARY .
SELECT IF (INDEX(Str,Srch)>0).
WRITE Outfile= 'filename.txt' /1 Str .

This writes to a text file if the search condition is met.

Dennis Deck, PhD
RMC Research Corporation
[hidden email]

-----Original Message-----
From: Secrist, Kevin [mailto:[hidden email]]
Sent: Monday, October 16, 2006 9:50 AM
Subject: Text to SPSS and Back?

Dear SPSS list members,

I was wondering if there was a process to bring a text file into spss,
run a match file to extract a line if a variable matches another file
variable, and then send it back out as a text file?

Thanks in advance,

Kevin Secrist, Administrative Analyst, Associate
ASD
Butte County Behavioral Health
CONFIDENTIALITY NOTICE:  This e-mail transmission, and any documents or
messages attached to it, may contain confidential information that is
legally privileged.  If you are not the intended recipient, or a person
responsible for delivering this e-mail to the intended recipient, then
you are (1) notified that any disclosure, copying, distribution, saving,
reading or use of this information is strictly prohibited, (2) requested
to discard and delete this e-mail and any attachments, and (3) requested
to immediately notify us by e-mail that you mistakenly received this
message [hidden email], fax (530) 895-6548, or telephone (530)
879-3305.  Thank you.

Far better an approximate answer to the right question, which is often
vague, than the exact answer to the wrong question, which can always be
made precise.
Ann. Math. Stat. 33 (1962) - John w. Tukey