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)?
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.
Catch up on SAS Innovate 2026
Nearly 200 sessions are now available on demand with the SAS Innovate Digital Pass.