We can use ampersand (&) to notify SAS to read the variable until there are two or more spaces encounter as a delimiter. This technique is always useful when the variable contains two or more words.
Actual Input: "Geeks for Geeks" Expected Input: "GeeksforGeeks"
Example 1: There are 2 spaces before 25, 32 and 30 in example code below.
Example 2: When a variable contains 2 or more than 2 words.
- In this scenario, we have a space between First Name and Last Name and we want to store both the first and last names in a single variable.
In this case, Colon modifier (:) does not work for a variable having multiple words.
- SAS | How to read character of varying length using COLON Modifier
- Find Location and Character Vector of an Object with partial name in R Language - apropos() and find() Function
- Python vs Java - Who Will Win the Battle in 2020?
- Difference between C and Objective C
- Longest Increasing Subsequence having sum value atmost K
- Learn C++ Programming Step by Step - A 20 Day Curriculum!
- sympy.integrals.transforms.fourier_transform() in python
- Learn Java on Your Own in 20 Days - Free!
- Comparison between Lists and Array in Python
- Top 10 Programming Languages for Blockchain Development
- Basics of JSON with GoLang
- Difference Between C Language and LISP Language
- Count of ways to represent N as sum of a prime number and twice of a square
- Find a Mother vertex in a Graph using Bit Masking
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to firstname.lastname@example.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.