I want to make a convenient wrapper using gsort command. My question is how to add a minus before every variable in my varlist. Thank you.
Code:
program define gsort2 syntax varlist gsort -`varlist' //NOT the right way, but use tokenize? ......
Code:
gsort2 price weight mpg, EQUALS(=)
gsort -price -weight -mpg
0 Response to syntax: add a minus before a list of variables
Post a Comment