BookmarkSubscribeRSS Feed
DavidToco
Calcite | Level 5

I´m using SAs Viya with SASstudio.

This code was running in SAS 9.4 base, but not working in sas studio.

/*SE GENERAN LOS MODELOS Y SE PRODUCEN LAS REGRESIONES*/
/*MODELO 1*/
data modelo1 (keep=iden s log_g log_n e1 /*aa1 aa2 aa3*/ f1 f2 m q t);
set viajesegatur;
/*Selecciona el modelo que vamos a estudiar*/
if modelo=1;
/*Que no sea un outlier*/
if AloOut=0;
/*Que sea un gasto >0 y válido*/
if galo_etapa>0 and val_galoj_etapa=0 and es_paq_aloj ne 1;
/*Que no sea outlier de pernoctaciones y */
if PernoctOut ne 1;
/*Que la vía de entrada sea igual a la salida */
LOG_G=log(galo_etapa);
LOG_N=log(noches_etapa);
LOG_D=log(distancia);
run;

 

1 REPLY 1
jklaverstijn
Rhodochrosite | Level 12

There are some gotcha's involved when running a datastep in Viya. You can refer to this blog post for some pointers. Otherwise please share more details and the log of what is not working. Merely stating that does not give many clues as to what might go wrong.

 

Regards Jan,

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

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
  • 323 views
  • 0 likes
  • 2 in conversation