Quantcast
Channel: Statalist
Viewing all articles
Browse latest Browse all 72767

How to extract first and third letter of a variable name

$
0
0
I have a variable list named like H1S1, H1S2 , H1S3 and so on. The variables have numeric values. My question is related not to the variable values, rather it is related to the variable names. I want to pick names of these variables from varlist macro in my program and then identify the first and third letter of the variable names and write them a separate macros. Can anyone help me with an example of how to do it.

Viewing all articles
Browse latest Browse all 72767

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>