HOW TO USE THE SCAN FUNCTION:
USING THE SCAN FUNCTION: SCAN (string,n,delimiters): returns the nth word from the character string string, where words are delimited by the characters in delimiters. It is used to extract words from a character value when the relative order of words is known, but their starting positions are not. NewVar= SCAN (string,n<, delimiters >); -returns the nth ‘word’ in the string When the SCAN function is used: ô€‚ƒ the length of the created variable is 200 bytes if it is not previously defined with a LENGTH statement ô€‚ƒ delimiters before the first word have no effect When the SCAN function is used, ô€‚ƒ any character or set of characters can serve as delimiters Points to remember while using SCAN Function: ô€‚ƒ a missing value is returned if there are fewer than n words in string ô€‚ƒ two or more contiguous delimiters are treated as a single delimiter ô€‚ƒ if n is negative, SCAN selects the word in the character string starting from the end of stri...