🎴 Flashcard Mode
SAS Programming Fundamentals
Card1 / 20
Mastered0
Review0
QuestionClick to flip
What is the value stored in the variable x? Data test; name = ’TATA CONSULTANCY SERVICES’; b = ’C’; x = INDEX (name, b); Run;
AnswerClick to flip back
A
6
💡 Explanation:
The INDEX function in SAS searches a character string for the first occurrence of a specified substring. In 'TATA CONSULTANCY SERVICES', the character 'C' first appears at position 6 (the first letter of 'CONSULTANCY').