I imported some data from an Excel file with 5 lines and two columns (proc import datafile): ID and V. Say that ID is 1 2 3 4 5 and V is 2 4 6 8 10. I want to define x as the third entry of V; that is 6. In Fortran, that would be x=V(3); other languages use [ ] or some such thing. What about SAS? I don't mean to select the case with ID=3, but to create a scalar variable with the single value 6. Seems simple enough, but I have looked everywhere (clearly, except for the right place), but without success. Any help would be greatly appreciated.
... View more