BookmarkSubscribeRSS Feed
saslackey
Calcite | Level 5
hi hve a simple swap process i need to carry out. IF LMA=12 and STATENAME='Alabama' then LMANAME="Troy-Eufaula

and if LMA=12 and STATENAME = 'Alabama' then LMANAME='Tombigbee'

so i wrote the code this way but it was generating errors

LIBNAME PERM 'P:\SASData\Datasets';
DATA A;;
Set PERM.LMA;// LMA is the name of the dataset
if ((StateName='Alabama')& (LandMarketAreaId = 12))
then LandMarketAreaName='Troy-Eufaula';

what could possibily be wrong with this?
1 REPLY 1
saslackey
Calcite | Level 5
thanks but i figured it out. just some simple syntax mistakes, semicolan errors. i am a new learner but felt good to out 🙂

sas-innovate-2024.png

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

Register now!

What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 1 reply
  • 534 views
  • 0 likes
  • 1 in conversation