

{"id":11687,"date":"2018-03-24T06:46:15","date_gmt":"2018-03-24T01:16:15","guid":{"rendered":"https:\/\/data-flair.training\/blogs\/?p=11687"},"modified":"2021-05-09T13:16:50","modified_gmt":"2021-05-09T07:46:50","slug":"read-raw-data-in-sas","status":"publish","type":"post","link":"https:\/\/data-flair.training\/blogs\/read-raw-data-in-sas\/","title":{"rendered":"How to Enter and Read Raw Data in SAS"},"content":{"rendered":"<p>In the last article, we learned <strong>how SAS merge data sets<\/strong>,\u00a0today we will be looking at how to enter &amp; read raw data in SAS. Like we discussed earlier, a raw data file is a file that is temporarily stored by SAS for the execution of a program.<\/p>\n<p>So, let&#8217;s start our journey of Entering &amp; Reading Raw Data in SAS Programming.<\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/03\/entering-and-reading-raw-data-in-sas-01.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-11698 size-full\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/03\/entering-and-reading-raw-data-in-sas-01.jpg\" alt=\"Read Raw Data In SAS Programming Language\" width=\"1200\" height=\"628\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/03\/entering-and-reading-raw-data-in-sas-01.jpg 1200w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/03\/entering-and-reading-raw-data-in-sas-01-150x79.jpg 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/03\/entering-and-reading-raw-data-in-sas-01-300x157.jpg 300w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/03\/entering-and-reading-raw-data-in-sas-01-768x402.jpg 768w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/03\/entering-and-reading-raw-data-in-sas-01-1024x536.jpg 1024w\" sizes=\"auto, (max-width: 1200px) 100vw, 1200px\" \/><\/a><\/p>\n<h2>6 Best Ways to Enter &amp; Read Raw Data in SAS<\/h2>\n<p>Below are some of the ways in which we can enter and read Raw Data in SAS.<\/p>\n<h3>1. Instream Data<\/h3>\n<p>If you are planning to enter a small amount of data, it will be convenient to type the data in the SAS program rather than reading it from another file. This is known as <strong>instream<\/strong> data. It is a quick and easy way to enter data into SAS for analysis.<\/p>\n<p>You will need 4 basic types of statements to enter data of this type:<\/p>\n<ul>\n<li>Data<\/li>\n<li>Input<\/li>\n<li>Cards or data lines<\/li>\n<li>A semicolon on a line by itself to end the data<\/li>\n<\/ul>\n<p><strong>Note:<\/strong>\u00a0There should be at least one blank between each data value. More than one blank is appropriate. It is important to have something as a placeholder for each variable, even when the value is missing.<\/p>\n<p>A period (.) will serve to indicate a missing value for both numeric and character variables entered in this way. The data do not need to be lined up exactly in columns.<\/p>\n<p><strong>Example-<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\">data salary;\r\ninput lname $ id sex $ salary age;\r\ncards;\r\nSmith\u00a0\u00a0\u00a0\u00a0\u00a0 1028 M\u00a0\u00a0\u00a0\u00a0 .\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 .\r\nWilliams\u00a0\u00a0 1337 F\u00a0\u00a0\u00a0 3500\u00a0\u00a0\u00a0 49\r\nBrun\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 1829 .\u00a0\u00a0 14800\u00a0\u00a0\u00a0 56\r\nAgassi\u00a0\u00a0\u00a0\u00a0 1553 F\u00a0\u00a0 11800\u00a0\u00a0\u00a0 65\r\nVernon\u00a0\u00a0\u00a0\u00a0 1626 M\u00a0 129000\u00a0\u00a0\u00a0 60\r\n\u00a0 ;\r\nproc print data=salary;\r\nrun;<\/pre>\n<h3>2. Entering data for more than one case on the same line<\/h3>\n<p>If you want to enter raw data in SAS on the same line for several cases, you can use the <strong>@@ symbol<\/strong>:<\/p>\n<p><strong>Example-<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\">data test;\r\n\u00a0\u00a0 input x y group @@;\r\n\u00a0\u00a0 cards;\r\n1\u00a0 2 A\u00a0\u00a0 3 12 A\u00a0\u00a0 15 22 B\u00a0\u00a0 17 29 B\u00a0\u00a0 11 44 C\u00a0\u00a0 13 29 C\r\n7 21 D\u00a0 11 29 D\u00a0\u00a0 16 19 E\u00a0\u00a0 25 27 E\u00a0\u00a0 41 12 F\u00a0\u00a0 17 19 F\r\n;\r\nproc print data=test;\r\nrun;<\/pre>\n<p>This results in the following output, which shows that data have been entered for 12 cases:<\/p>\n<p>OBS\u00a0\u00a0\u00a0\u00a0 X\u00a0 \u00a0 \u00a0 \u00a0 Y\u00a0\u00a0\u00a0 GROUP<br \/>\n1\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 1\u00a0 \u00a0 \u00a0 \u00a0 2\u00a0 \u00a0 \u00a0 \u00a0 A<br \/>\n2\u00a0 \u00a0 \u00a0 \u00a0 \u00a03\u00a0 \u00a0 \u00a0 \u00a012\u00a0 \u00a0 \u00a0 \u00a0 A<br \/>\n3\u00a0 \u00a0 \u00a0 \u00a0 15\u00a0 \u00a0 \u00a0 22\u00a0 \u00a0 \u00a0 \u00a0 B<br \/>\n4\u00a0 \u00a0 \u00a0 \u00a0 17\u00a0 \u00a0 \u00a0 29\u00a0 \u00a0 \u00a0 \u00a0 B<br \/>\n5\u00a0 \u00a0 \u00a0 \u00a0 11\u00a0 \u00a0 \u00a0 44\u00a0 \u00a0 \u00a0 \u00a0 C<br \/>\n6\u00a0 \u00a0 \u00a0 \u00a0 13\u00a0 \u00a0 \u00a0 29\u00a0 \u00a0 \u00a0 \u00a0 C<br \/>\n7\u00a0 \u00a0 \u00a0 \u00a0 \u00a07\u00a0 \u00a0 \u00a0 \u00a021\u00a0 \u00a0 \u00a0 \u00a0 D<br \/>\n8\u00a0 \u00a0 \u00a0 \u00a011\u00a0 \u00a0 \u00a0 \u00a029\u00a0 \u00a0 \u00a0 \u00a0 D<br \/>\n9\u00a0 \u00a0 \u00a0 \u00a016\u00a0 \u00a0 \u00a0 \u00a019\u00a0 \u00a0 \u00a0 \u00a0 E<br \/>\n10\u00a0 \u00a0 \u00a0 25\u00a0 \u00a0 \u00a0 27\u00a0 \u00a0 \u00a0 \u00a0 E<br \/>\n11\u00a0 \u00a0 \u00a0 41\u00a0 \u00a0 \u00a0 12\u00a0 \u00a0 \u00a0 \u00a0 F<br \/>\n12\u00a0 \u00a0 \u00a0 17\u00a0 \u00a0 \u00a0 19\u00a0 \u00a0 \u00a0 \u00a0 F<\/p>\n<h3>3. Reading data from external files<\/h3>\n<p>Read Raw data in SAS, files (sometimes called ascii files, flat files, text files or unformatted files) can come from many different sources: when exported from a database program, such as Access, from a spreadsheet program, such as Excel.<\/p>\n<p>The first step is to be sure that you know the characteristics of the raw data file in SAS. You can check &amp; read raw data in SAS by using a text editor or word processing program.<\/p>\n<p>For small files, you can use Windows Notepad, for larger files you can use Microsoft Word or Word Perfect (be sure if you open your raw data file with a word processing program, that you save it as text only or unformatted text when you quit).<\/p>\n<p>To be able to read a raw data file, you will need a codebook that gives information about the data contained in the file. Some commonly used raw data file types are:<\/p>\n<p><strong>i. Blank separated values <\/strong>(with data in list form)<\/p>\n<p><strong>ii. Comma-separated values <\/strong>(.csv files&#8211;these typically come from Excel)<\/p>\n<ul>\n<li><strong>Tab-separated values <\/strong>(.txt files&#8211;these may come from a number of different applications, including Excel)<\/li>\n<\/ul>\n<p><strong>iii. Fixed-column data <\/strong>(often the form of data from government agencies, or research groups, such as ICPSR&#8211;the Inter-University Consortium for Political and Social Research)<\/p>\n<p>The part of SAS that creates a new data set is the data step as we discussed before. The data step for reading raw data from a file has 3 essential statements:<\/p>\n<ul>\n<li>Data<\/li>\n<li>Infile<\/li>\n<li>Input<\/li>\n<\/ul>\n<p>Other statements may be added to the data step to create new variables, carry out data transformations, or recode variables.<\/p>\n<h3>4. Reading blank separated values ( list or free-form data)<\/h3>\n<p>Raw data values separated by blanks are often called list or free-form data. Each value is separated from the next by one or more blanks. If there are any missing values, they must be indicated by a placeholder, such as a period.<\/p>\n<p>Note that a period can be used to indicate a missing value for either character or numeric variables. Missing values can also be denoted by a missing value code, such as 99 or 999. The data do not need to be lined up in columns, so lines can be of unequal length, and can appear \u201cragged\u201d.<\/p>\n<p>Here is an excerpt from a raw data file that is separated by blanks. Note that the values in the file are not lined up in columns. The name of the raw data file is class.dat. Missing values indicates by a period\u00a0 (.), with a blank between periods for contiguous missing values.<\/p>\n<p>Warren F 29 68 139<br \/>\nKalbfleisch F 35 64 120<br \/>\nPierce M . . 112<br \/>\nWalker F 22 56 133<br \/>\nRogers M 45 68 145<br \/>\nBaldwin M 47 72 128<br \/>\nMims F 48 67 152<br \/>\nLambini F 36 . 120<br \/>\nGossert M . 73 139<\/p>\n<p>The SAS data step to read raw data in SAS is very simple. The data statement names the data set to create, and the infile statement indicates the raw data file to read. The input statement lists the variables to read in the order in which they appear in the raw data file.<\/p>\n<p>No variables can skip at the beginning of the variable list, but you may stop reading variables before reaching the end of the list.\u00a0 Here are the SAS commands for reading this data:<strong>\u00a0<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\">data class;\r\n\u00a0\u00a0\u00a0\u00a0\u00a0 infile \"class.dat\";\r\n\u00a0\u00a0\u00a0\u00a0\u00a0 input lname $ sex $ age height sbp;\r\nrun;<\/pre>\n<h3>5. Reading raw data separated by commas (.csv files):<\/h3>\n<p>Read raw data in SAS,\u00a0 files will in the form of CSV (Comma Separated Values) files. These files create by Excel and are very easy to read raw data in SAS Programming. An excerpt of a CSV file called PULSE.CSV discusses below.<\/p>\n<p>Note that the first line of data contains the variable names.<\/p>\n<p>pulse1,pulse2,ran,smokes,sex,height,weight,activity<br \/>\n64,88,1,2,1,66,140,2<br \/>\n58,70,1,2,1,72,145,2<br \/>\n62,76,1,1,1,73,160,3<br \/>\n66,78,1,1,1,73,190,1<\/p>\n<p>SAS commands to read in this raw data file:<\/p>\n<pre class=\"EnlighterJSRAW\">data pulse;\r\n\u00a0\u00a0 infile \"pulse.csv\" firstobs=2 delimiter = \",\"\u00a0 dsd;\r\n\u00a0\u00a0 input pulse1 pulse2 ran smokes sex height weight activity;\r\nrun;<\/pre>\n<p>There are several modifications to the infile statement in the previous example:<\/p>\n<ol>\n<li><strong>delimiter = &#8220;,&#8221; or dlm=&#8221;,&#8221; <\/strong>tells SAS that commas use to separate the values in the raw data file, not the default, which is a blank.<\/li>\n<li><strong>firstobs =\u00a0 2<\/strong>\u00a0 tells SAS to begin reading the raw data file at line 2, which is where the actual values begin.<\/li>\n<li><strong>dsd <\/strong>allows SAS to read consecutive commas as an indication of missing values.<\/li>\n<\/ol>\n<p>The delimiter option may shorten to dlm, as shown below:<\/p>\n<pre class=\"EnlighterJSRAW\">data pulse;\r\n\u00a0\u00a0 infile \"pulse.csv\" firstobs=2 dlm = \",\" dsd;\r\n\u00a0\u00a0 input pulse1 pulse2 ran smokes sex height weight activity;\r\nrun;<\/pre>\n<h3>6. Reading in raw data separated by tabs (.txt files):<\/h3>\n<p>Here we can read raw data in SAS, by separate tabs may create by Excel (saving a file with the text option) or by other applications. The example below shows how tab-separated data appear when viewed without the tabs visible. This is a portion of the raw data file, iris.txt:<\/p>\n<p>51\u00a0\u00a0\u00a0 38\u00a0\u00a0\u00a0 15\u00a0\u00a0\u00a0 3\u00a0\u00a0\u00a0\u00a0 Setosa<br \/>\n54\u00a0\u00a0\u00a0 34\u00a0\u00a0\u00a0 17\u00a0\u00a0\u00a0 2\u00a0\u00a0\u00a0\u00a0 Setosa<br \/>\n51\u00a0\u00a0\u00a0 37\u00a0\u00a0\u00a0 15\u00a0\u00a0\u00a0 4\u00a0\u00a0\u00a0\u00a0 Setosa<br \/>\n52\u00a0\u00a0\u00a0 35\u00a0\u00a0\u00a0 15\u00a0\u00a0\u00a0 2\u00a0\u00a0\u00a0\u00a0 Setosa<br \/>\n53\u00a0\u00a0\u00a0 37\u00a0\u00a0\u00a0 15\u00a0\u00a0\u00a0 2\u00a0\u00a0\u00a0\u00a0 Setosa<br \/>\n65\u00a0\u00a0\u00a0 28\u00a0\u00a0\u00a0 46\u00a0\u00a0\u00a0 15\u00a0\u00a0\u00a0 Versicolor<br \/>\n62\u00a0\u00a0\u00a0 22\u00a0\u00a0\u00a0 45\u00a0\u00a0\u00a0 15\u00a0\u00a0\u00a0 Versicolor<br \/>\n59\u00a0\u00a0\u00a0 32\u00a0\u00a0\u00a0 48\u00a0\u00a0\u00a0 18\u00a0\u00a0\u00a0 Versicolor<br \/>\n61\u00a0\u00a0\u00a0 30\u00a0\u00a0\u00a0 46\u00a0\u00a0\u00a0 14\u00a0\u00a0\u00a0 Versicolor<\/p>\n<p>It is clearly not obvious to the naked eye that there are tabs separating the values in this file, but you still need to specify this to correct read raw data in SAS.<\/p>\n<p>To do this, modify the infile statement to tell SAS that the delimiters are tabs. Since there is no character equivalent of the tab, the hexadecimal equivalent of tab\u00a0indicates in the <strong>delimiter =<\/strong> option, as shown below:<\/p>\n<pre class=\"EnlighterJSRAW\">data iris;\r\n\u00a0 infile \"c:\\temp\\labdata\\iris.txt\"\u00a0 dsd missover dlm=\"09\"X\u00a0 ;\r\n\u00a0 length species $ 10;\r\n\u00a0 input\u00a0\u00a0\u00a0\u00a0 sepallen\r\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 sepalwid\r\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 petallen\r\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 petalwid\r\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 species $;\r\nrun;\r\nproc print data=iris;\r\nrun;<\/pre>\n<p>Note that SPECIES read as a character variable. We also use a length statement to be sure we get the correct length of the variable SPECIES.<\/p>\n<p>Even though this variable appears last in the raw data, it will be first in the SAS data set, because the length statement is given before the data are read in. We will discuss the partial output from these commands:<\/p>\n<p>Obs\u00a0\u00a0\u00a0 species\u00a0\u00a0\u00a0 sepallen\u00a0\u00a0\u00a0 sepalwid\u00a0\u00a0\u00a0 petallen\u00a0\u00a0\u00a0 petalwid<br \/>\n1\u00a0\u00a0\u00a0 Setosa\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 50\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 33\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 14\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 2<br \/>\n2\u00a0\u00a0\u00a0 Setosa\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 46\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 34\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 14\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 3<br \/>\n3\u00a0\u00a0\u00a0 Setosa\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 46\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 36\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 10\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 2<br \/>\n4\u00a0\u00a0\u00a0 Setosa\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 51\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 33\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 17\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 5<br \/>\n5\u00a0\u00a0\u00a0 Setosa\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 55\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 35\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 13\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 2<br \/>\n6\u00a0\u00a0\u00a0 Setosa\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 48\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 31\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 16\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 2<br \/>\n7\u00a0\u00a0\u00a0 Setosa\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 52\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 34\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 14\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 2<\/p>\n<div class=\"OD\">\n<div class=\"IL\">\n<div id=\":be.av\" class=\"Up pC\">\n<div class=\"n291pb uaxL4e\">This was all, How to Enter and Read Raw Data in SAS Tutorial. Hope you like our explanation.<\/div>\n<h2>Summary<\/h2>\n<p>So, this was all about how to enter &amp; read raw data in SAS and different ways of reading raw data in SAS Programming Language. We will next be learning about <strong>how to write data in SAS.<\/strong><\/p>\n<p>Furthermore, if you have any query regarding how to enter &amp; read raw data in SAS, comment below and stay tuned for more.<\/p>\n<\/div>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>In the last article, we learned how SAS merge data sets,\u00a0today we will be looking at how to enter &amp; read raw data in SAS. Like we discussed earlier, a raw data file is&#46;&#46;&#46;<\/p>\n","protected":false},"author":6,"featured_media":11698,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[59],"tags":[16486,6838,11361,12227],"class_list":["post-11687","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-sas","tag-entering-reading-raw-data-in-sas","tag-instream-data","tag-read-raw-data-in-sas","tag-sas-read-raw-data"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.8 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to Enter and Read Raw Data in SAS - DataFlair<\/title>\n<meta name=\"description\" content=\"Different ways to enter &amp; read raw data in SAS; From Instream Data, external files, Data separated by tabs and commas and blank separated values.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/data-flair.training\/blogs\/read-raw-data-in-sas\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Enter and Read Raw Data in SAS - DataFlair\" \/>\n<meta property=\"og:description\" content=\"Different ways to enter &amp; read raw data in SAS; From Instream Data, external files, Data separated by tabs and commas and blank separated values.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/data-flair.training\/blogs\/read-raw-data-in-sas\/\" \/>\n<meta property=\"og:site_name\" content=\"DataFlair\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/DataFlairWS\/\" \/>\n<meta property=\"article:published_time\" content=\"2018-03-24T01:16:15+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-05-09T07:46:50+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/03\/entering-and-reading-raw-data-in-sas-01.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"628\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"DataFlair Team\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@DataFlairWS\" \/>\n<meta name=\"twitter:site\" content=\"@DataFlairWS\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"DataFlair Team\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"8 minutes\" \/>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Enter and Read Raw Data in SAS - DataFlair","description":"Different ways to enter & read raw data in SAS; From Instream Data, external files, Data separated by tabs and commas and blank separated values.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/data-flair.training\/blogs\/read-raw-data-in-sas\/","og_locale":"en_US","og_type":"article","og_title":"How to Enter and Read Raw Data in SAS - DataFlair","og_description":"Different ways to enter & read raw data in SAS; From Instream Data, external files, Data separated by tabs and commas and blank separated values.","og_url":"https:\/\/data-flair.training\/blogs\/read-raw-data-in-sas\/","og_site_name":"DataFlair","article_publisher":"https:\/\/www.facebook.com\/DataFlairWS\/","article_published_time":"2018-03-24T01:16:15+00:00","article_modified_time":"2021-05-09T07:46:50+00:00","og_image":[{"width":1200,"height":628,"url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/03\/entering-and-reading-raw-data-in-sas-01.jpg","type":"image\/jpeg"}],"author":"DataFlair Team","twitter_card":"summary_large_image","twitter_creator":"@DataFlairWS","twitter_site":"@DataFlairWS","twitter_misc":{"Written by":"DataFlair Team","Est. reading time":"8 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/data-flair.training\/blogs\/read-raw-data-in-sas\/#article","isPartOf":{"@id":"https:\/\/data-flair.training\/blogs\/read-raw-data-in-sas\/"},"author":{"name":"DataFlair Team","@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/person\/2c58ecb4f73a39f0ef993f1ddfcd7b89"},"headline":"How to Enter and Read Raw Data in SAS","datePublished":"2018-03-24T01:16:15+00:00","dateModified":"2021-05-09T07:46:50+00:00","mainEntityOfPage":{"@id":"https:\/\/data-flair.training\/blogs\/read-raw-data-in-sas\/"},"wordCount":1297,"commentCount":2,"publisher":{"@id":"https:\/\/data-flair.training\/blogs\/#organization"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/read-raw-data-in-sas\/#primaryimage"},"thumbnailUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/03\/entering-and-reading-raw-data-in-sas-01.jpg","keywords":["Entering &amp; Reading Raw Data in SAS","Instream Data","Read Raw Data in SAS","SAS Read Raw Data"],"articleSection":["SAS Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/data-flair.training\/blogs\/read-raw-data-in-sas\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/data-flair.training\/blogs\/read-raw-data-in-sas\/","url":"https:\/\/data-flair.training\/blogs\/read-raw-data-in-sas\/","name":"How to Enter and Read Raw Data in SAS - DataFlair","isPartOf":{"@id":"https:\/\/data-flair.training\/blogs\/#website"},"primaryImageOfPage":{"@id":"https:\/\/data-flair.training\/blogs\/read-raw-data-in-sas\/#primaryimage"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/read-raw-data-in-sas\/#primaryimage"},"thumbnailUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/03\/entering-and-reading-raw-data-in-sas-01.jpg","datePublished":"2018-03-24T01:16:15+00:00","dateModified":"2021-05-09T07:46:50+00:00","description":"Different ways to enter & read raw data in SAS; From Instream Data, external files, Data separated by tabs and commas and blank separated values.","breadcrumb":{"@id":"https:\/\/data-flair.training\/blogs\/read-raw-data-in-sas\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/data-flair.training\/blogs\/read-raw-data-in-sas\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/data-flair.training\/blogs\/read-raw-data-in-sas\/#primaryimage","url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/03\/entering-and-reading-raw-data-in-sas-01.jpg","contentUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/03\/entering-and-reading-raw-data-in-sas-01.jpg","width":1200,"height":628,"caption":"How to Enter &amp; Read Raw Data In SAS Programming Language"},{"@type":"BreadcrumbList","@id":"https:\/\/data-flair.training\/blogs\/read-raw-data-in-sas\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Blog Home","item":"https:\/\/data-flair.training\/blogs\/"},{"@type":"ListItem","position":2,"name":"SAS Tutorials","item":"https:\/\/data-flair.training\/blogs\/category\/sas\/"},{"@type":"ListItem","position":3,"name":"How to Enter and Read Raw Data in SAS"}]},{"@type":"WebSite","@id":"https:\/\/data-flair.training\/blogs\/#website","url":"https:\/\/data-flair.training\/blogs\/","name":"DataFlair","description":"Learn Today. Lead Tomorrow.","publisher":{"@id":"https:\/\/data-flair.training\/blogs\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/data-flair.training\/blogs\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/data-flair.training\/blogs\/#organization","name":"DataFlair","url":"https:\/\/data-flair.training\/blogs\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/logo\/image\/","url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/07\/Data-Flair.png","contentUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2016\/07\/Data-Flair.png","width":106,"height":48,"caption":"DataFlair"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/DataFlairWS\/","https:\/\/x.com\/DataFlairWS","https:\/\/www.linkedin.com\/company\/dataflair-web-services-pvt-ltd\/","https:\/\/www.youtube.com\/user\/DataFlairWS"]},{"@type":"Person","@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/person\/2c58ecb4f73a39f0ef993f1ddfcd7b89","name":"DataFlair Team","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/1ce4a0e3e542444fc73bbebf83e89e8b73e2d95ccb1fcee64da9945f078b97c5?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/1ce4a0e3e542444fc73bbebf83e89e8b73e2d95ccb1fcee64da9945f078b97c5?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/1ce4a0e3e542444fc73bbebf83e89e8b73e2d95ccb1fcee64da9945f078b97c5?s=96&d=mm&r=g","caption":"DataFlair Team"},"description":"The DataFlair Team provides industry-driven content on programming, Java, Python, C++, DSA, AI, ML, data Science, Android, Flutter, MERN, Web Development, and technology. Our expert educators focus on delivering value-packed, easy-to-follow resources for tech enthusiasts and professionals.","url":"https:\/\/data-flair.training\/blogs\/author\/dfteam2\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/11687","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/comments?post=11687"}],"version-history":[{"count":11,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/11687\/revisions"}],"predecessor-version":[{"id":93372,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/11687\/revisions\/93372"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/media\/11698"}],"wp:attachment":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/media?parent=11687"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/categories?post=11687"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/tags?post=11687"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}