1.

Name the command used for sorting in SAS programs?

Answer»

The PROC SORT command can be used to sort data in SAS. The command can be used for multiple VARIABLES within a program. It creates a new DATASET with sorting and keeps the original dataset unchanged. 

Syntax: 

PROC SORT DATA=original OUT=SORTED; BY variable_name;

Here, 

  • Variable_name represents the column name on which sorting happens.
  • Original represents the dataset name to be sorted.
  • Sorted represents the dataset name after it is sorted.


Discussion

No Comment Found