STAT 440 Study Guide - Comprehensive Final Exam Guide - Serial Attached Scsi, Time, Truncation

129 views44 pages

Document Summary

Strings in sas are the values which are enclosed with in a pair of single quotes. Also the string variables are declared by adding a space and $ sign at the end of the variable declaration. Sas has many powerful functions to analyze and manipulate strings. We can declare the string variables and their values as shown below. In the code below we declare two character variables of lengths 6 and 5. The length keyword is used for declaring variables without creating multiple observations. On running the above code we get the output which shows the variable names and their values. Below are the examples of some sas functions which are used frequently. This function extracts a substring using the start and end positions. In case of no end position is mentioned it extracts all the characters till end of the string. Stringval is the value of the string variable. P1 is the start position of extraction.

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers

Related textbook solutions