DATA Step, Macro, Functions and more

SAS/BASE

Reply
N/A
Posts: 0

SAS/BASE

I have one dataset that is having 100 records in that variable names are empname empsalary now i want to eliminate last 2 characters of name variable value from every record? Can any one give clear example for the same?
N/A
Posts: 0

Re: SAS/BASE

This sounds like homework. So I will not give you the solution directly.

Read the SAS documentation -- available online -- for DATA and SET statements, and for LENGTH and SUBSTR functions.
Ask a Question
Discussion stats
  • 1 reply
  • 105 views
  • 0 likes
  • 1 in conversation