Date: Tue, 9 Dec 2008 22:41:54 -0500
Reply-To: Sigurd Hermansen <HERMANS1@WESTAT.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Sigurd Hermansen <HERMANS1@WESTAT.COM>
Content-Type: text/plain; charset="us-ascii"
From: SAS(r) Discussion [mailto:SAS-L@LISTSERV.UGA.EDU] On Behalf Of sas 9 bi user
Sent: Tuesday, December 09, 2008 5:22 PM
I have some data in a dataset that I need to call in a html page. The data
Suppose I have the following dataset:
input value $ 1-10;
I ultimately I want to have the above exported into a text file with a .js extension exactly as follows below. Note the number 6 and the set() values need to come from "have" as the values in the Value column . The number 6 would change based on the row count so it cant be hardcoded:
x = 6
if x < 7 then y = 10 else y = 1
I have tried doing a proc export as a .txt file but that adds the column name to the text file and I cant figure out how to add the number of records and the header, footer and my IF statement above using a PUT or anything like that and I cant figure out how to save it as a .js file. I rely on your wisdom for advice!!
Any thoughts would be greatly appreciated and I thank you in advance for any thoughts!