Help using Base SAS procedures

Reverse Procedure

Not applicable
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)?

Super Contributor
Super Contributor
Posts: 3,176

Re: Reverse Procedure

Posted in reply to deleted_user
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
  • 2 in conversation