Help using Base SAS procedures

Reverse Procedure

Reply
N/A
Posts: 0

Reverse Procedure

Hi All,
Can any one tell me if I have numerical value 1234 and Character value ABCD. So how Can I put them in reverse order by writing a Query(Program)?

Thanks
Super Contributor
Super Contributor
Posts: 3,174

Re: Reverse Procedure

Explore using the SAS DATA step and particularly the REVERSE function. And for the SAS numeric variable, use the SAS function PUT to convert the number to a character string first, then use the REVERSE function against the character variable representation of your number.

Scott Barry
SBBWorks, Inc.
Ask a Question
Discussion stats
  • 1 reply
  • 80 views
  • 0 likes
  • 2 in conversation