LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (December 2008, week 3)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Mon, 15 Dec 2008 17:36:16 -0600
Reply-To:     Red Eagle <rdb1956@HOTMAIL.COM>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         Red Eagle <rdb1956@HOTMAIL.COM>
Subject:      Need a general Method to load a LIST from a SAS dataset
Comments: To: sas-l@uga.edu

Here I am trying to create a general method to load a LIST from a SAS Dataset. Maybe someone has some code for this they could share. I'm passing in the name of the SAS dataset to use. I'm passing in the name of the LIST to make and load. I'm passing in the name of the variable, the values of which to load. I would like to pass in the name of the screen combo box and then assign the list to it. However the code below doesn't work, yet. Run time error is ENTRY statement parameter 1 passed wrong type.

LoadList: METHOD parm_SASTableName :INPUT :OBJECT /* work.SAS datset name */ parm_ListName :INPUT :LIST /* name of the LIST to load */ parm_InputVarName :INPUT :CHAR(20); /* name of the variable to use */

dsid=open('work.parm_SASTableName'); nlevels=0; parm_ListName=makelist(); rc=lvarlevel(dsid,'parm_InputVarName',nlevels,parm_ListName); rc=close(dsid);

ENDMETHOD;

Seemed simple enough when I started. In the SCL I would use CALL METHOD(??,??) and pass in the paramerters.

Thanks in advance!!!!


Back to: Top of message | Previous page | Main SAS-L page