Reading SAS-dataset and getting Format/Value labels at the same time?

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

Reading SAS-dataset and getting Format/Value labels at the same time?

Staffan Lindberg
Dear list!
 
Is there a possibility to read a SAS dataset (.sas7bdat) and get the Format
(Value labels in SPSS) at the same time. If so, does the SAS dataset have to
be put together in a special way?
 
best
 
Staffan Lindberg
Sweden

====================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: Reading SAS-dataset and getting Format/Value labels at the same time?

Oliver, Richard
Yes and yes. The FORMATS subcommand on the GET SAS command will read value labels from a SAS formats file created with the SAS proc format statement.


-----Original Message-----
From: SPSSX(r) Discussion [mailto:[hidden email]] On Behalf Of Staffan Lindberg
Sent: Thursday, November 27, 2008 6:50 AM
To: [hidden email]
Subject: Reading SAS-dataset and getting Format/Value labels at the same time?

Dear list!

Is there a possibility to read a SAS dataset (.sas7bdat) and get the Format
(Value labels in SPSS) at the same time. If so, does the SAS dataset have to
be put together in a special way?

best

Staffan Lindberg
Sweden

=======
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
|

SV: Reading SAS-dataset and getting Format/Value labels at the same time?

Staffan Lindberg
Thanks ever so much Richard! I was told by a SAS programmer that this was
not possible. This will same me a lot of time.

best

Staffan

-----Ursprungligt meddelande-----
Från: Oliver, Richard [mailto:[hidden email]]
Skickat: den 27 november 2008 14:52
Till: Staffan Lindberg; [hidden email]
Ämne: RE: Reading SAS-dataset and getting Format/Value labels at the same
time?


Yes and yes. The FORMATS subcommand on the GET SAS command will read value
labels from a SAS formats file created with the SAS proc format statement.


-----Original Message-----
From: SPSSX(r) Discussion [mailto:[hidden email]] On Behalf Of
Staffan Lindberg
Sent: Thursday, November 27, 2008 6:50 AM
To: [hidden email]
Subject: Reading SAS-dataset and getting Format/Value labels at the same
time?

Dear list!

Is there a possibility to read a SAS dataset (.sas7bdat) and get the Format
(Value labels in SPSS) at the same time. If so, does the SAS dataset have to
be put together in a special way?

best

Staffan Lindberg
Sweden

=======
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: Reading SAS-dataset and getting Formats

Richard Ristow
In reply to this post by Oliver, Richard
At 08:52 AM 11/27/2008, Oliver, Richard wrote:

>The FORMATS subcommand on the GET SAS command will read value labels
>from a SAS formats file created with the SAS proc format statement.

Remember, however, that SAS format definitions are in a file (which
is itself a SAS dataset) separate from the dataset with the data.
Make sure you get both from your source.

-Best of luck,
  Richard

=====================
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