BookmarkSubscribeRSS Feed
Raj_SasUser
Calcite | Level 5

%prvadit(2); %prvadit(3); %prvadit(4); %prvadit(5); %prvadit(9);

proc sql;

  create table prvadr as

  select prpr_id, prad_state, prad_zip, min(datepart(prad_eff_dt)) as effdt,

  max(datepart(prad_term_dt)) as trmdt

  from prvadr2

  group by prpr_id, prad_state, prad_zip;

quit;

4 REPLIES 4
Reeza
Super User

It is SQL....

Raj_SasUser
Calcite | Level 5

i need to change above code to Microsoft SQl code i am not understanding few lines here

What does mean ; %prvadit(2); %prvadit(3); %prvadit(4); %prvadit(5); %prvadit(9);

and what is proc sql;

                  quit;

LinusH
Tourmaline | Level 20

First, you are asking for SQL Server guidance, that is better searched for elsewhere.

Second, those are macro calls. You need to find and look into those macro definition to see what they mean.

Sounds like you are migrating a SAS application to SQL Server, so perhaps the SAS community might have mixed feelings about helping you out... 😉

Data never sleeps
Reeza
Super User

I only do when it's for free, if I'm being paid then it's fine Smiley Happy

Hire a SAS/SQL consultant to do the work.

But I'm pretty sure someone else will answer the question as well.

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

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
  • 4 replies
  • 830 views
  • 0 likes
  • 3 in conversation