

{"id":11287,"date":"2018-03-21T09:03:29","date_gmt":"2018-03-21T03:33:29","guid":{"rendered":"https:\/\/data-flair.training\/blogs\/?p=11287"},"modified":"2021-05-09T13:16:58","modified_gmt":"2021-05-09T07:46:58","slug":"sas-string-functions","status":"publish","type":"post","link":"https:\/\/data-flair.training\/blogs\/sas-string-functions\/","title":{"rendered":"SAS String Functions | SAS Character Functions &#8211; 7 Mins Tutorial"},"content":{"rendered":"<p>Today, we will be learning about SAS strings and major SAS string functions with syntax and examples. We will also present you with an example representing a declaration of two string variables. The examples and syntaxes will help you to understand the string functions in SAS in a better way.<\/p>\n<h2>What is String in SAS?<\/h2>\n<p>Strings\u00a0in SAS programming are the values that are enclosed within a pair of single quotes. String variables are declared by placing a $ sign at the end of the declaration of a variable. SAS has a vast repository of functions that can be applied to strings for analysis.<\/p>\n<h2>Declaring String Variables<\/h2>\n<p>Below is an example that shows the declaration of two string variables string 1 and string 2. As you can see a dollar sign has been placed at the end to denote that the variable is of character type. The numbers, 5 and 6 at the end of the string denote the length of the string.<\/p>\n<p><strong>Example:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">data string_example;\r\nLENGTH string1 $ 6 String2 $ 5;\r\n\/*String variables of length 6 and 5 *\/\r\nString1 = 'Hello';\r\nString2 = 'World';<\/pre>\n<p><strong>Output:<\/strong><\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/03\/strings_1_concatenate.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-11289 size-full\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/03\/strings_1_concatenate.jpg\" alt=\"Declaring String Variable \" width=\"600\" height=\"342\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/03\/strings_1_concatenate.jpg 600w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/03\/strings_1_concatenate-150x86.jpg 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/03\/strings_1_concatenate-300x171.jpg 300w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><\/p>\n<p>Two columns with variable names string 1 and string 2 were created of character type. Hello, and World is the data values in the form of string inside the dataset.<\/p>\n<h2>SAS String Functions<\/h2>\n<p>SAS programming has a vast number of SAS string functions that can be applied to strings to make our analysis easier. Below we will be seeing some important and most frequently used SAS string functions.<\/p>\n<h3>1. SAS COMPBL Function<\/h3>\n<p>SAS String Functions &#8211; COMPBL Function<br \/>\n<u><\/u><\/p>\n<p><strong><u>Purpose<\/u><\/strong><strong>:<\/strong> \u00a0Occurrences of two or more blanks is replaced with a single blank character. This is particularly useful for situations where names and addresses that have multiple blanks may have been entered.<br \/>\n<u><\/u><\/p>\n<p><strong><u>Syntax: <\/u><\/strong>\u00a0COMPBL (an expression that is to be compressed)<br \/>\n<u><\/u><\/p>\n<p><strong><u>Example<\/u>:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">CHAR = \"A D \u00a0\u00a0\u00a0\u00a0XYZ\"<\/pre>\n<p>The function COMPBL(CHAR) will give the output \u201cA D\u00a0 XYZ\u201d<\/p>\n<h3>2. SAS STRIP Function<\/h3>\n<p>SAS String Functions &#8211; STRIP Function<br \/>\n<u><\/u><\/p>\n<p><strong><u>Purpose<\/u><\/strong><strong>:<\/strong> This function removes the leading and trailing spaces i.e spaces that occur before and after any character.<br \/>\n<u><\/u><\/p>\n<p><strong><u>Syntax: <\/u><\/strong>\u00a0STRIP( name of the character)<br \/>\n<u><\/u><\/p>\n<p><strong><u>Example<\/u>:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">let CHAR = \"\u00a0\u00a0\u00a0\u00a0\u00a0 XYZ\u00a0\u00a0\u00a0\u00a0 \"<\/pre>\n<p>i. The function STRIP( CHAR) will give the output as \u201c XYZ\u201d<\/p>\n<p>ii. STRIP( \u201c LEADING AND TRAILING\u201d ) will give output as<br \/>\n\u201cLEADING AND TRAILING\u201d)<\/p>\n<h3>3. SAS COMPRESS Function<\/h3>\n<p>SAS String Functions &#8211; COMPRESS Function<br \/>\n<u><\/u><\/p>\n<p><strong><u>Purpose<\/u><\/strong><strong>:<\/strong> This function removes some specified characters that we wish to remove from the string instead of removing blanks.<br \/>\n<u><\/u><\/p>\n<p><strong><u>Syntax: <\/u><\/strong>\u00a0COMPRESS( name of the string, \u2018 characters that we want to be removed\u2019)<br \/>\n<u><\/u><u><\/u><\/p>\n<p><strong><u>Example<\/u>:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">let CHAR = \" AB\u00a0 C126734IJKXYZ789 \"<\/pre>\n<p>i. The function COMPRESS( CHAR, \u201c6789IJK\u201d) will give the output as \u201c AB\u00a0 C1234XYZ\u201d<\/p>\n<p>ii. COMPRESS( \u201cAB C126734IJKXYZ789\u201d ) will give output as \u201cABC126734IJKXYZ789\u201d<\/p>\n<h3>4. SAS LEFT Function<\/h3>\n<p>SAS String Functions &#8211; STRIP Function<br \/>\n<u><\/u><\/p>\n<p><strong><u>Purpose<\/u><\/strong><strong>:<\/strong> This function aligns the text or the string to the left instead of removing leading blanks.<br \/>\n<u><\/u><\/p>\n<p><strong><u>Syntax: <\/u><\/strong>\u00a0LEFT( EXPRESSION)<br \/>\n<u><\/u><\/p>\n<p><strong><u>Example<\/u>:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">let CHAR = \"\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 XYZ\u00a0\u00a0\u00a0\u00a0\u00a0 \"<\/pre>\n<p>i. The function LEFT( CHAR) will give the output as \u201cXYZ\u00a0\u00a0\u00a0 \u201d<\/p>\n<p>ii. LEFT( \u201c 678 \u201d ) will give output as \u201c678\u00a0\u00a0\u00a0\u00a0\u00a0 \u201d<\/p>\n<h3>5. SAS TRIM Function<\/h3>\n<p>SAS String Functions &#8211; TRIM Function<br \/>\n<u><\/u><\/p>\n<p><strong><u>Purpose<\/u><\/strong><strong>:<\/strong> This function is used for removing trailing blanks exclusively. It becomes useful when we want to concatenate two strings and both have trailing spaces.<br \/>\n<u><\/u><\/p>\n<p><strong><u>Syntax: <\/u><\/strong>\u00a0TRIM( name of the string)<br \/>\n<u><\/u><\/p>\n<p><strong><u>Example<\/u>:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">let \u00a0\u00a0\u00a0STRING1 = \"XYZ\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \" and STRING2 = \"\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 abc\"<\/pre>\n<p>i. TRIM(STRING1) will trim trailing spaces and return &#8220;XYZ&#8221;.<\/p>\n<p>ii. TRIM(&#8221; &#8220;) will display result as &#8221; &#8221; (length = 1)<\/p>\n<p>iii. TRIM(STRING2) will return same string because there are no trailing spaces, only leading spaces &#8221;\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 abc&#8221;<\/p>\n<h3>6. SAS \u201cCAT\u201d Functions<\/h3>\n<p>SAS String Functions &#8211; CAT Function\u00a0(CAT, CATS, CATT, and CATX)<br \/>\n<u><\/u><\/p>\n<p><strong><u>Purpose<\/u><\/strong><strong>:<\/strong> These functions are used to concatenate two strings (join them). The CAT function joins the two strings as it is, including spaces also.<br \/>\n<u><\/u><\/p>\n<p><strong><u>Syntax: <\/u><\/strong>\u00a0CAT( STRING1, STRING2, STRING3,\u2026.. STRINGN)<br \/>\n<u><\/u><\/p>\n<p><strong><u>Example<\/u><\/strong>\u00a0:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">let\u00a0\u00a0\u00a0 A = \"HELLO\" ,\u00a0 B = \"\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 HOW\",\u00a0 C= \u201dYOU\u00a0\u00a0\u00a0\u00a0 \u201c , D= \u201d\u00a0\u00a0\u00a0\u00a0\u00a0 DO\u00a0\u00a0\u00a0\u00a0 \u201c where A, B, C, D are character variables.<\/pre>\n<p>i. CAT(A, B) gives &#8220;HELLO\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 HOW&#8221;<\/p>\n<p>ii. CAT(B, C, D) gives &#8221; HOWYOU\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 DO\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 &#8221;<\/p>\n<p>iii. CAT(&#8220;HEY &#8220;, C) will give &#8220;HEYYOU\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 &#8221;<\/p>\n<p><strong>Note &#8211;<\/strong><br \/>\ni.<strong> CATT &#8211;\u00a0<\/strong>strips only trailing spaces.<br \/>\nii.<strong> CATS &#8211;\u00a0<\/strong>strips both leading and trailing blanks, and does not insert separators.<br \/>\niii.<strong> CATX &#8211;\u00a0<\/strong>strips both leading and trailing blanks, and inserts separators. The first argument to\u00a0CATX\u00a0specifies the separator.<\/p>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/03\/strings_1_concatenate.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-11289 size-full\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/03\/strings_1_concatenate.jpg\" alt=\"SAS String Functions\" width=\"600\" height=\"342\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/03\/strings_1_concatenate.jpg 600w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/03\/strings_1_concatenate-150x86.jpg 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/03\/strings_1_concatenate-300x171.jpg 300w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><\/p>\n<h3>7. SAS SUBSTR Function<\/h3>\n<p>SAS String Functions &#8211; SUBSTR Function<br \/>\n<u><\/u><\/p>\n<p><strong><u>Purpose<\/u><\/strong><strong>:<\/strong> This function extracts a part of a string.<br \/>\n<u><\/u><\/p>\n<p><strong><u>Syntax: <\/u><\/strong>\u00a0SUBSTR(string, start, length )<\/p>\n<p>A\u00a0Start is the starting position from where we want the string.<br \/>\nlength is the number of characters to include in the substring.<\/p>\n<p>If this argument omits, the SUBSTR function will return all the characters from the start position to the end of the string.<\/p>\n<p><strong>Example:<\/strong><\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">let STRING = \"ABCXYZ\"<\/pre>\n<p>i. SUBSTR(STRING,4,2 ) will return &#8220;XY&#8221;<\/p>\n<p>ii. SUBSTR(STRING,4) will return\u00a0 &#8220;XYZ\u201d<\/p>\n<h3>8. SAS LOWCASE, UPCASE, and PROPCASE<\/h3>\n<p>The SAS String Functions &#8211; LOWCASE, UPCASE, and PROPCASE\u00a0Function<\/p>\n<ul>\n<li><strong>The SAS LOWCASE Function &#8211;\u00a0<\/strong>Converts the character string into lowercase character.<\/li>\n<li><strong>SAS UPCASE<\/strong>\u00a0<strong>Function &#8211;<\/strong>\u00a0Converts the character string into uppercase character.<\/li>\n<li><strong>SAS PROPCASE<\/strong>\u00a0<strong>Function &#8211;<\/strong>\u00a0Returns the word having uppercase in the first letter and lowercase in the rest of the letter (sentence format).<\/li>\n<\/ul>\n<p><a href=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/03\/upcase-function.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-11291 size-full\" src=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/03\/upcase-function.jpg\" alt=\" String Functions in SAS\" width=\"618\" height=\"191\" srcset=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/03\/upcase-function.jpg 618w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/03\/upcase-function-150x46.jpg 150w, https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/03\/upcase-function-300x93.jpg 300w\" sizes=\"auto, (max-width: 618px) 100vw, 618px\" \/><\/a><\/p>\n<h3>9. SAS LENGTH Function<\/h3>\n<p><strong><u>Purpose<\/u><\/strong><strong>:<\/strong> Determines the length of a character value( string), and does not count trailing blanks. If an argument is null, it returns a value of 1.<br \/>\n<u><\/u><\/p>\n<p><strong><u>Syntax: <\/u><\/strong>\u00a0LENGTH(STRING)<br \/>\n<u><\/u><\/p>\n<p><strong><u>Example<\/u><\/strong>\u00a0:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"null\">let CHAR = \"BC \"<\/pre>\n<p>i. LENGTH(&#8220;BC&#8221;) will give 2<\/p>\n<p>ii. LENGTH(CHAR) will also give 2<\/p>\n<p>iii. LENGTH(&#8221; &#8220;) will give\u00a0 1 because it is null.<\/p>\n<p>This was all about the SAS string functions. Hope you like our explanation.<\/p>\n<h2>Summary<\/h2>\n<p>We learned about SAS String, declaring String Variable in SAS, SAS String Function, types of String Functions in SAS Programming with their syntax and examples.<\/p>\n<p>Clear with SAS string functions? Any queries, feel free to ask in the comment section.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Today, we will be learning about SAS strings and major SAS string functions with syntax and examples. We will also present you with an example representing a declaration of two string variables. The examples&#46;&#46;&#46;<\/p>\n","protected":false},"author":6,"featured_media":11288,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[59],"tags":[11955,12065,12276,12278],"class_list":["post-11287","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-sas","tag-sas-character-functions","tag-sas-length-function","tag-sas-string-functions","tag-sas-strip-function"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>SAS String Functions | SAS Character Functions - 7 Mins Tutorial - DataFlair<\/title>\n<meta name=\"description\" content=\"Through this section of SAS string functions, learn the major types of string functions in SAS with syntax and examples. Check it for free!\" \/>\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\/sas-string-functions\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"SAS String Functions | SAS Character Functions - 7 Mins Tutorial - DataFlair\" \/>\n<meta property=\"og:description\" content=\"Through this section of SAS string functions, learn the major types of string functions in SAS with syntax and examples. Check it for free!\" \/>\n<meta property=\"og:url\" content=\"https:\/\/data-flair.training\/blogs\/sas-string-functions\/\" \/>\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-21T03:33:29+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-05-09T07:46:58+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/03\/Strings-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=\"5 minutes\" \/>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"SAS String Functions | SAS Character Functions - 7 Mins Tutorial - DataFlair","description":"Through this section of SAS string functions, learn the major types of string functions in SAS with syntax and examples. Check it for free!","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\/sas-string-functions\/","og_locale":"en_US","og_type":"article","og_title":"SAS String Functions | SAS Character Functions - 7 Mins Tutorial - DataFlair","og_description":"Through this section of SAS string functions, learn the major types of string functions in SAS with syntax and examples. Check it for free!","og_url":"https:\/\/data-flair.training\/blogs\/sas-string-functions\/","og_site_name":"DataFlair","article_publisher":"https:\/\/www.facebook.com\/DataFlairWS\/","article_published_time":"2018-03-21T03:33:29+00:00","article_modified_time":"2021-05-09T07:46:58+00:00","og_image":[{"width":1200,"height":628,"url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/03\/Strings-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":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/data-flair.training\/blogs\/sas-string-functions\/#article","isPartOf":{"@id":"https:\/\/data-flair.training\/blogs\/sas-string-functions\/"},"author":{"name":"DataFlair Team","@id":"https:\/\/data-flair.training\/blogs\/#\/schema\/person\/2c58ecb4f73a39f0ef993f1ddfcd7b89"},"headline":"SAS String Functions | SAS Character Functions &#8211; 7 Mins Tutorial","datePublished":"2018-03-21T03:33:29+00:00","dateModified":"2021-05-09T07:46:58+00:00","mainEntityOfPage":{"@id":"https:\/\/data-flair.training\/blogs\/sas-string-functions\/"},"wordCount":901,"commentCount":0,"publisher":{"@id":"https:\/\/data-flair.training\/blogs\/#organization"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/sas-string-functions\/#primaryimage"},"thumbnailUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/03\/Strings-in-SAS-01.jpg","keywords":["SAS Character Functions","SAS Length Function","SAS String Functions","SAS STRIP Function"],"articleSection":["SAS Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/data-flair.training\/blogs\/sas-string-functions\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/data-flair.training\/blogs\/sas-string-functions\/","url":"https:\/\/data-flair.training\/blogs\/sas-string-functions\/","name":"SAS String Functions | SAS Character Functions - 7 Mins Tutorial - DataFlair","isPartOf":{"@id":"https:\/\/data-flair.training\/blogs\/#website"},"primaryImageOfPage":{"@id":"https:\/\/data-flair.training\/blogs\/sas-string-functions\/#primaryimage"},"image":{"@id":"https:\/\/data-flair.training\/blogs\/sas-string-functions\/#primaryimage"},"thumbnailUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/03\/Strings-in-SAS-01.jpg","datePublished":"2018-03-21T03:33:29+00:00","dateModified":"2021-05-09T07:46:58+00:00","description":"Through this section of SAS string functions, learn the major types of string functions in SAS with syntax and examples. Check it for free!","breadcrumb":{"@id":"https:\/\/data-flair.training\/blogs\/sas-string-functions\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/data-flair.training\/blogs\/sas-string-functions\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/data-flair.training\/blogs\/sas-string-functions\/#primaryimage","url":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/03\/Strings-in-SAS-01.jpg","contentUrl":"https:\/\/data-flair.training\/blogs\/wp-content\/uploads\/sites\/2\/2018\/03\/Strings-in-SAS-01.jpg","width":1200,"height":628,"caption":"SAS String Functions"},{"@type":"BreadcrumbList","@id":"https:\/\/data-flair.training\/blogs\/sas-string-functions\/#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":"SAS String Functions | SAS Character Functions &#8211; 7 Mins Tutorial"}]},{"@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\/11287","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=11287"}],"version-history":[{"count":10,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/11287\/revisions"}],"predecessor-version":[{"id":94013,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/posts\/11287\/revisions\/94013"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/media\/11288"}],"wp:attachment":[{"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/media?parent=11287"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/categories?post=11287"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/data-flair.training\/blogs\/wp-json\/wp\/v2\/tags?post=11287"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}