Luz Adriana
unread,Nov 23, 2010, 3:25:21 PM11/23/10Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Lasug
Buenas tardes,
Gracias por leer este mensaje.
Me gustaria saber si alguien ha utilizado frecuentemente SAS O.R. y me
puede ayudar a resolver este problema.
Estoy probando como leer y escribir datos hacia y desde SAS O.R.
El siguiente codigo hace 2 cosas:
1) "importa" datos que ya existen en SAS Enterprise al modulo de SAS
O.R. para usarlos en optimizacion. (este codigo es una muestra de
codigo que lee datos, lo copie de un ejemplo)
2) exporta los datos recien leidos desde SAS O.R. hacia el entorno
normal de SAS Enterprise para post proceso (este codigo lo escribi
yo).
El codigo corre.
/*Parte 1, muestra de lectura*/
read data dataSol into BOOKINGS1 = [bookID]
solBookIDList = bookID /*bookID name outside OR*/
solRoomIDList = roomID /*roomID name outside OR*/
solIndexList = seq;
/*Parte 2*/
create data LuzDataSol from [bookingID]= {BOOKINGS1}
variable1bk=solBookIDList variable2rm=solRoomIDList
variable3index=solIndexList ;
Quiero hacer algo semejante con el siguiente bloque.
La parte 1 la copie de otra fuente y corre bien. La parte 2 la copie
yo.
/*Parte 1*/
read data dataBook into [bookID] {a in BOOKATTRS}
<bookAttrsList[bookID, a] = col("Attr"||a)>;
/*Parte 2*/
create data LuzDataBook from [bookingID whichAttr] = {b in BOOKINGS1,
a in BOOKATTRS} <{b, a}> var1bookAttrLst=bookAttrsList;
La parte 2 no corre. Si alguien me puede orientar en algun material
que leer para solucionar el problema lo apreciaria mucho.