![]() ![]() For tab delimiter, the syntax would be infile 'file-description' dlm='09'x.Syntax : Infile 'file-description' dlm=',' If you have a data file with other delimiters such as comma or tab you need to define the delimiter before defining the variables using INFILE and DLM = options. There is no difference between these two keywords. You can also use CARDS instead of DATALINES. RUN - The DATA step ends with a RUN statement. ![]() PROC PRINT - The PROC PRINT statement is used to print out the contents of the data set in the output window.DATALINES - The DATALINES statement is used to indicate that the lines following it contain the actual data.Dollar sign ($) - The dollar sign ($) is used to identify a variable as character type.INPUT - Use the INPUT statement to define the variables used in the data set.The purpose of the DATA statement is to tell SAS that you are creating a new data set i.e. DATA - The DATA step always begins with a DATA statement.Let's start out by clarifying the main keywords associated with the following program. You can enter your lines of data directly in your SAS program by using a DATALINES statement. After finishing this tutorial, you would be comfortable how to extract data into SAS. It includes examples of importing most common formats such as CSV, Excel File and Text Files etc. It also covers how to import external data to SAS. This tutorial will show you how to read data into SAS.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |