1 / 10

How are your SAS Skills? Chapter 1: Accessing Data (Question # 1)

How are your SAS Skills? Chapter 1: Accessing Data (Question # 1). When merging data sets using the MERGE statement, which data set, first or second , has data values that overwrite data values for common variables?. Sharpening Your SAS Skills, Sunil Gupta, www.SASSavvy.com.

shanna
Télécharger la présentation

How are your SAS Skills? Chapter 1: Accessing Data (Question # 1)

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. How are your SAS Skills? Chapter 1: Accessing Data (Question # 1) • When merging data sets using the MERGE statement, which data set, first or second, has data values that overwrite data values for common variables? Sharpening Your SAS Skills, Sunil Gupta, www.SASSavvy.com

  2. How are your SAS Skills? Chapter 1: Accessing Data (Answer # 1) For common variables, the second data set has data values that overwrite data values of the first data set when merging two data sets using the MERGE statement. Sharpening Your SAS Skills, Sunil Gupta, www.SASSavvy.com

  3. How are your SAS Skills? Chapter 2: Creating Data Structures (Question # 2) • What is the order of sequence if both DROP and KEEP statements are applied within the DATA step? Sharpening Your SAS Skills, Sunil Gupta, www.SASSavvy.com

  4. How are your SAS Skills? Chapter 2: Creating Data Structures (Answer # 2) • If both DROP and KEEP statements are applied within the DATA step, then the order of priority is DROP and then KEEP. Sharpening Your SAS Skills, Sunil Gupta, www.SASSavvy.com

  5. How are your SAS Skills? Chapter 3: Managing Data (Question # 3) • Is it possible to use the RETAIN statement to preserve a character string in a character variable? Sharpening Your SAS Skills, Sunil Gupta, www.SASSavvy.com

  6. How are your SAS Skills? Chapter 3: Managing Data(Answer # 3) • Yes, it is possible to use the RETAIN statement to preserve a character string in a character variable without resetting to blanks for the next observation. Also works for numeric variables. Sharpening Your SAS Skills, Sunil Gupta, www.SASSavvy.com

  7. How are your SAS Skills? Chapter 4: Generating Reports (Question # 4) • What is one difference between the MEANS procedure and the SUMMARY procedure? Sharpening Your SAS Skills, Sunil Gupta, www.SASSavvy.com

  8. How are your SAS Skills? Chapter 4: Generating Reports (Answer # 4) • By default, the MEANS procedure produces a report while the SUMMARY procedure provides an output data set unless the PRINT option is specified. Other than that, the two SAS procedures are similar in syntax and results. Sharpening Your SAS Skills, Sunil Gupta, www.SASSavvy.com

  9. How are your SAS Skills? Chapter 5: Handling Errors (Question # 5) • Is it possible to get the note ‘Invalid Data’ when using the SET statement in a DATA step? Sharpening Your SAS Skills, Sunil Gupta, www.SASSavvy.com

  10. How are your SAS Skills? Chapter 5: Handling Errors (Answer # 5) • No, the ‘Invalid Data’ note appears when SAS encounters unexpected data while reading the data using the INPUT statement. When using the SET statement, you are accessing a data set that is already created. Sharpening Your SAS Skills, Sunil Gupta, www.SASSavvy.com

More Related