SAS Codes - Sorting

Embed Size (px)

Citation preview

  • 8/19/2019 SAS Codes - Sorting

    1/1

    Data exam;

    Infile "H:\example.csv" DLM=','  missover dsd firstobs=2;

    lent!

    ame : # 10

    $lass : # 10

    %c!ool : # 10

    &e : 8.

    Income : 8.

    ;

    (format

    Income : ).)

    ;(

    inp*t

    ame #

    $lass #

    %c!ool #

    &e

    Income

    ;

    RUN;

     proc  print data=exam;RUN;

    The SAS System

    Obs Name Class School Age Income

    1   Vibhore IX DBMS 21 10

    2   Aakash X DPS 22 20

    3   Abhinav XX DU 19 30

    4   Ankit XI RVCE . 0

    5   Shre!a XII II" 29 #0