Date: Fri, 16 Jun 2006 14:10:00 -0400
Reply-To: Peter Constantinidis <peter@CONSTANTINIDIS.CA>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Peter Constantinidis <peter@CONSTANTINIDIS.CA>
Subject: how does one move down a column,
fetching observations and creating new variables horizontally?
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
I have been trying to use the fetchobs function, but I don't think I'm
using it properly. My idea was that I would just tell it to start
reading at obs 40 and move down 22, and then repeat for a new
observation line in a new data set but nope.
What I have is an input data set with a single variable, but it's in a
specific sequence.
I would like to be able to do for example:
if set1&obs#1 then set2_obs1_var1=set1_obs1
if set1&obs#2 then set2_obs1_var2=set1_obs2
with the idea that instead of:
a
b
c
d
I will get instead, each identified:
a b c d
I can't use proc transpose because I still have to segment it up, plus
it's only 1 variable currently.