Hello! I am working on some existing code, which I did not write. The goal, in one segment, is to convert a list of names (in a macro var) to a list of sequential ID variables, for sorting. E.g.: Proc format; value $A_ORD "James" = 1 "Pushyami" = 2 ; run; The problem is that although this works fine in base SAS, for some reason when I run it in ultraedit it gives me "Syntax error: expecting one of the following: a quoted string, a format name." So, if I had written the program, I would simply not do things this way (or even just reverse the two, using the macro to create the format), but it would be a big big pain to rewrite around this problem. On the other hand, if I simply add quotation marks around each numeral, then the sorting will be alphabetic, which is also not desired. I believe there is a way to ask for numeric sorting, but it would also be a (small) pain. I assume this latter option is what I'll have to do, unless I'm overlooking something. The main thing I'm curious about is why this problem exists at all, which is somewhat baffling to me. Is anyone familiar with using SAS in UltraEdit and able to fill me in? Thank you!
... View more