Home > Back-end >  How to change the observation number with another variable?
How to change the observation number with another variable?

Time:11-30

I want to print the first 30 observations of my database but replace the observation number with the id number (which is another variable).

my code looks like this:

proc print data=data1.Donnees2005(obs=30)LABEL;
run; 

CodePudding user response:

ID idnumber;

Using ID statement will remove the default OBS column.

CodePudding user response:

proc print data=data1.Donnees2005(obs=30)LABEL;
    id idnumber;
run; 
  • Related