1.

Calculate the rank according to the marks in ascending order and if any marks value is repeated the rank should be the same for both.

Answer»

The PAD OPTION can be used to READ the source data having the variable length RECORDS, so to read the variable length of records we can USE the PAD option, the PAD option can be used with the infile

statement;

  example

data Test; infile 'C:\Users\Anshu\Desktop\test.txt' PAD; input @1name $6. @10 sex $1. @12 marks 3. @14 salary 8.; run; proc print data=Test; run;


Discussion

No Comment Found