Friday, November 15, 2013

SAS: Double dash

Use double-dash to indicate a range of variables (in the order they are defined in the program data vector, I assume).

Source code:

    data _null_;
    input a b c $ d e $ f;
    put b--e;
    datalines;
    1 2 w 4 x  6
    2 4 y 8 z 12
    ;
    run;



Log:

    2 w 4 x
    4 y 8 z



No comments:

Post a Comment