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,

hackathon24-white-horiz.png

The 2025 SAS Hackathon Kicks Off on June 11!

Watch the live Hackathon Kickoff to get all the essential information about the SAS Hackathon—including how to join, how to participate, and expert tips for success.

YouTube LinkedIn

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 1 reply
  • 477 views
  • 0 likes
  • 2 in conversation