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,
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!
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.
Ready to level-up your skills? Choose your own adventure.