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;
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,
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!
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.