SAS7BDAT File Viewer and Converter
Open a .sas7bdat file to read its columns, labels, formats and rows without SAS, choose a text encoding if needed, filter the rows and download CSV, Excel, Stata, SPSS or JSON.
Tarayıcınızda çalışır. Dosyalarınız cihazınızdan asla çıkmaz. Nasıl kontrol edeceğinizi görün
…
Nasıl yapılır
- 1Open
Load a .sas7bdat dataset.
- 2Encoding
Fix the text encoding if needed.
- 3Columns
Keep only the columns you want.
- 4Filter
Add rules and a row limit.
- 5Export
Download CSV, Excel or another format.
Bu araç hakkında
The SAS7BDAT File Viewer and Converter reads SAS datasets in your browser, so a .sas7bdat file from a colleague, a clinical data package or a government release can be checked without a SAS session. The reader handles files written on Windows and Unix, in 32-bit and 64-bit layouts and in little or big endian byte order. Uncompressed datasets are read directly, and compressed ones are expanded first, whether they used CHAR compression, which SAS calls RLE, or BINARY compression, known as RDC. The header figures list the file name and size, the dataset name stored inside the file, the creation time, the SAS release and host system, the bit layout and byte order, the compression type, the text encoding and the number of rows and variables. A text encoding menu offers UTF-8, Windows-1252, Latin-1, Central European, Cyrillic, Japanese Shift-JIS, simplified and traditional Chinese and Korean, for files whose header names the wrong encoding or none at all. Column formats stored in the file decide how numbers are shown. Date formats such as DATE, MMDDYY, YYMMDD, WORDDATE or E8601DA turn day counts since 1 January 1960 into dates, datetime formats such as DATETIME or E8601DT turn second counts into date and time, and TIME or HHMM formats become hours, minutes and seconds. The Data tab shows the rows, the Variables tab lists each column's name, label, type and format, and the Summary tab reports valid and missing counts with minimum, maximum, mean, median and standard deviation for numbers, or distinct values and the most common ones for character columns. The same controls used for SPSS and Stata files are available here: a column list, line-by-line filter rules, a choice between dates and stored numbers, and a row limit of 1,000, 10,000 or 100,000 rows that stops the reader early on very large tables.
Who this is for
Statisticians receiving SAS output from a sponsor or agency, analysts moving work from SAS to R, Python or Excel, and auditors who need to confirm what a dataset contains before it is loaded somewhere else.
How to use it
1. Open a .sas7bdat file, or press Load a sample. 2. Change the text encoding if accented letters look wrong. 3. List the columns to keep, separated by commas. 4. Add filter rules and pick a row limit for big files. 5. Read the Summary tab, then download CSV, Excel, DTA, SAV or JSON.
What the sample shows
The sample is the well-known airline dataset, created on 2008-05-13 by SAS 9.0 on Windows as a 32-bit, little endian, uncompressed file of 5.0 KB. It holds 32 yearly rows from 1948 to 1979 and 6 numeric columns: YEAR, Y (level of output), W (wage rate), R (interest rate), L (labor input) and K (capital input). The Summary tab gives Y a range of 1.214 to 23.619, a mean of 10.0502 and a median of 7.3495, and K a range of 0.559 to 9.508.
Filtering by year
Type YEAR >= 1960 in the filter box and 20 of 32 rows remain, running from 1960 to 1979, while the mean of Y rises to 14.2796. You can name a column by its name or by its label, so level of output > 10 is accepted as a rule too. Text comparisons ignore letter case, and contains, starts with, is empty and is not empty work on character columns.
About long decimals
Some SAS columns are saved with a storage length below 8 bytes, which drops part of each number's precision. The viewer rounds such columns to the digits their length can hold, so a 4-byte value reads 1.214 rather than a long tail of float noise. Keep in mind that the lost precision cannot be recovered.
Downloads
CSV and Excel files hold the values and dates as the Data tab shows them, and the workbook adds a Variables sheet with labels and formats. The Stata download stores date columns as %td or %tc values and keeps column labels, and JSON writes one object per row.
Limits
User-defined formats live in a separate catalog file (.sas7bcat) that is not read, so coded columns show their stored values instead of format labels. Special missing values such as .A to .Z and ._ appear blank. In the SPSS download, date columns are written as SAS day or second counts. The tool reads and converts data only and is not statistical or regulatory advice.
Çözümlü örnek
Airline sample, 32 rows: YEAR >= 1960 keeps 20 rows and the mean of Y rises from 10.0502 to 14.2796.
Kısaca
- Kategori: Matematik ve bilim
- Tarayıcınızda çalışır, kayıt yok, yükleme yok.
- Girdiğiniz bilgiler cihazınızda kalır.
- İngilizce olarak mevcut.
- İçeriğin son gözden geçirilmesi:
- Resmî kaynak: SAS7BDAT layout as documented by the open-source sas7bdat project (M. Shotwell)
Sık sorulan sorular
Can I open a .sas7bdat file without SAS?
Yes. The dataset is decoded in your browser, including CHAR (RLE) and BINARY (RDC) compressed files from Windows or Unix.
Why do accented letters look wrong?
The header may name the wrong encoding or none. Pick the right one in the Text encoding menu, such as Windows-1252 or UTF-8, and the file is read again.
Are my custom SAS formats applied?
No. User-defined formats are stored in a .sas7bcat catalog, which this tool does not read, so those columns show the stored codes.
How are SAS dates handled?
Columns with date, datetime or time formats are converted from SAS day or second counts since 1 January 1960 into readable values.
Can I read only part of a huge dataset?
Yes. Choose a row limit of 1,000, 10,000 or 100,000 and the reader stops after that many rows, with a note giving the full row count.
Which formats can I export?
CSV, an Excel workbook, Stata DTA, SPSS SAV and JSON, each containing the kept columns and the rows that pass your filter.
