Pipe Delimited

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

Pipe Delimited

Stimpson, Matt

Good afternoon,

 

Can any tell me if and how you can save a SPSS file as a pipe delimited file?

 

Thanks,
Matt

 

 

 

 

Reply | Threaded
Open this post in threaded view
|

Re: Pipe Delimited

David Marso
Administrator
See SAVE TRANSLATE ...
 / TYPE=CSV ... / TEXTOPTIONS DELIMITER=("|") ......../FIELDNAMES ..
HTH, David
---
SAVE TRANSLATE
[{/OUTFILE=file }]
{/CONNECT=ODBC connect string}
[{/UNENCRYPTED}]
{/ENCRYPTED }
[/TYPE={CSV }]
{DB2 }
{DB3 }
{DB4 }
{ODBC }
{PC }
{SAS }
{STATA}
{SYM }
{SLK }
{TAB }
{WKS }
{WK1 }
{WK3 }
{XLS }
[/VERSION={1}]
{2}
{3}
{4}
{5}
{6}
{7}
{9}
{8}
{12}
{X}
[/ENCODING={'Locale'}]
{'System'}
{'value' }
[/FIELDNAMES]
[/CELLS={VALUES}]
{LABELS}
[/TEXTOPTIONS [DELIMITER='char'] [QUALIFIER='char']
[DECIMAL={DOT }]
{COMMA}
[FORMAT={PLAIN }]]
Stimpson, Matt wrote
>
> Good afternoon,
>
> Can any tell me if and how you can save a SPSS file as a pipe delimited
> file?
>
> Thanks,
> Matt
>


--
View this message in context: http://spssx-discussion.1045642.n5.nabble.com/Pipe-Delimited-tp5581082p5581191.html
Sent from the SPSSX Discussion mailing list archive at Nabble.com.

=====================
To manage your subscription to SPSSX-L, send a message to
[hidden email] (not to SPSSX-L), with no body text except the
command. To leave the list, send the command
SIGNOFF SPSSX-L
For a list of commands to manage subscriptions, send the command
INFO REFCARD
Please reply to the list and not to my personal email.
Those desiring my consulting or training services please feel free to email me.
---
"Nolite dare sanctum canibus neque mittatis margaritas vestras ante porcos ne forte conculcent eas pedibus suis."
Cum es damnatorum possederunt porcos iens ut salire off sanguinum cliff in abyssum?"
Reply | Threaded
Open this post in threaded view
|

Re: Pipe Delimited

David Marso
Administrator
In reply to this post by Stimpson, Matt
See SAVE TRANSLATE ...
 / TYPE=CSV ... / TEXTOPTIONS DELIMITER="|" ......../FIELDNAMES ..
HTH, David
---
SAVE TRANSLATE
[{/OUTFILE=file }]
{/CONNECT=ODBC connect string}
[{/UNENCRYPTED}]
{/ENCRYPTED }
[/TYPE={CSV }]
{DB2 }
{DB3 }
{DB4 }
{ODBC }
{PC }
{SAS }
{STATA}
{SYM }
{SLK }
{TAB }
{WKS }
{WK1 }
{WK3 }
{XLS }
[/VERSION={1}]
{2}
{3}
{4}
{5}
{6}
{7}
{9}
{8}
{12}
{X}
[/ENCODING={'Locale'}]
{'System'}
{'value' }
[/FIELDNAMES]
[/CELLS={VALUES}]
{LABELS}
[/TEXTOPTIONS [DELIMITER='char'] [QUALIFIER='char']
[DECIMAL={DOT }]
{COMMA}
[FORMAT={PLAIN }]]
Stimpson, Matt wrote
Good afternoon,

Can any tell me if and how you can save a SPSS file as a pipe delimited file?

Thanks,
Matt
Please reply to the list and not to my personal email.
Those desiring my consulting or training services please feel free to email me.
---
"Nolite dare sanctum canibus neque mittatis margaritas vestras ante porcos ne forte conculcent eas pedibus suis."
Cum es damnatorum possederunt porcos iens ut salire off sanguinum cliff in abyssum?"
Reply | Threaded
Open this post in threaded view
|

Re: Pipe Delimited

Stimpson, Matt
Works wonderfully!

Thank you,
Matt

-----Original Message-----
From: SPSSX(r) Discussion [mailto:[hidden email]] On Behalf Of David Marso
Sent: Tuesday, March 20, 2012 4:53 PM
To: [hidden email]
Subject: Re: Pipe Delimited

See SAVE TRANSLATE ...
 / TYPE=CSV ... / TEXTOPTIONS DELIMITER="|" ......../FIELDNAMES ..
HTH, David
---
SAVE TRANSLATE
[{/OUTFILE=file }]
{/CONNECT=ODBC connect string}
[{/UNENCRYPTED}]
{/ENCRYPTED }
[/TYPE={CSV }]
{DB2 }
{DB3 }
{DB4 }
{ODBC }
{PC }
{SAS }
{STATA}
{SYM }
{SLK }
{TAB }
{WKS }
{WK1 }
{WK3 }
{XLS }
[/VERSION={1}]
{2}
{3}
{4}
{5}
{6}
{7}
{9}
{8}
{12}
{X}
[/ENCODING={'Locale'}]
{'System'}
{'value' }
[/FIELDNAMES]
[/CELLS={VALUES}]
{LABELS}
[/TEXTOPTIONS [DELIMITER='char'] [QUALIFIER='char'] [DECIMAL={DOT }] {COMMA} [FORMAT={PLAIN }]] Stimpson, Matt wrote
>
> Good afternoon,
>
> Can any tell me if and how you can save a SPSS file as a pipe
> delimited file?
>
> Thanks,
> Matt
>


--
View this message in context: http://spssx-discussion.1045642.n5.nabble.com/Pipe-Delimited-tp5581082p5581192.html
Sent from the SPSSX Discussion mailing list archive at Nabble.com.

=====================
To manage your subscription to SPSSX-L, send a message to [hidden email] (not to SPSSX-L), with no body text except the command. To leave the list, send the command SIGNOFF SPSSX-L For a list of commands to manage subscriptions, send the command INFO REFCARD

=====================
To manage your subscription to SPSSX-L, send a message to
[hidden email] (not to SPSSX-L), with no body text except the
command. To leave the list, send the command
SIGNOFF SPSSX-L
For a list of commands to manage subscriptions, send the command
INFO REFCARD
Reply | Threaded
Open this post in threaded view
|

Re: Pipe Delimited

Rick Oliver-3
In reply to this post by Stimpson, Matt
Is this what you want?

data list free /x y z.
begin data
1 2 3
end data.
save translate /type=csv /outfile='c:\temp\pipe.csv' /textoptions delimiter="|".



Rick Oliver
Senior Information Developer
IBM Business Analytics (SPSS)
E-mail: [hidden email]
Phone: 312.893.4922 | T/L: 206-4922




From:        "Stimpson, Matt" <[hidden email]>
To:        [hidden email]
Date:        03/20/2012 02:52 PM
Subject:        Pipe Delimited
Sent by:        "SPSSX(r) Discussion" <[hidden email]>




Good afternoon,
 
Can any tell me if and how you can save a SPSS file as a pipe delimited file?
 
Thanks,
Matt