View previous topic :: View next topic
|
Author |
Message |
Shubhabrata Roy
New User
Joined: 28 May 2009 Posts: 4 Location: Bangalore
|
|
|
|
Hi,
HOw can I convert saS file to flat file? Please let me know the possible solution. |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8697 Location: Dubuque, Iowa, USA
|
|
|
|
Use a SAS data step to input the file and write it to a sequential file. SAS data sets cannot be read by system utilities as they are in a proprietary SAS format. |
|
Back to top |
|
|
vasanthz
Global Moderator
Joined: 28 Aug 2007 Posts: 1742 Location: Tirupur, India
|
|
Back to top |
|
|
Shubhabrata Roy
New User
Joined: 28 May 2009 Posts: 4 Location: Bangalore
|
|
|
|
So is there a way of knowing what record is there in the SAS file??? |
|
Back to top |
|
|
vasanthz
Global Moderator
Joined: 28 Aug 2007 Posts: 1742 Location: Tirupur, India
|
|
|
|
Yes you can know wats in there by browsing the dataset through SAS editor. Not through ISPF. browse option.
Dont do it. If you open it in edit mode, then it damages the dataset & then SAS gets confused when reading it & you will get confused of the data. |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8697 Location: Dubuque, Iowa, USA
|
|
|
|
PROC CONTENTS will give what SAS knows about the SAS data set. |
|
Back to top |
|
|
PeterHolland
Global Moderator
Joined: 27 Oct 2009 Posts: 2481 Location: Netherlands, Amstelveen
|
|
|
|
Use the proc contents procedure. |
|
Back to top |
|
|
|