|
Try the following
Data s;
input x y z;
cards;
0 1 6
1 0 7
run;
Data wanted;
set s;
Do i = 1 to z;
output;
end;
drop i;
run;
proc print;
run;
Nat Wooding
Environmental Specialist III
Dominion, Environmental Biology
4111 Castlewood Rd
Richmond, VA 23234
Phone:804-271-5313, Fax: 804-271-2977
Shaik Hymad
<hymadsk@GMAIL.CO
M> To
Sent by: "SAS(r) SAS-L@LISTSERV.UGA.EDU
Discussion" cc
<SAS-L@LISTSERV.U
GA.EDU> Subject
how create repetative obsvatoins
05/08/2009 09:17
AM
Please respond to
Shaik Hymad
<hymadsk@GMAIL.CO
M>
Hi i hav dataset like
x y z
0 1 6
1 0 7
for example z value is 6 i need output like 6 times repeat to that obs
like
0 1 6
0 1 6
0 1 6
0 1 6
0 1 6
0 1 6
1 0 7
1 0 7
1 0 7
1 0 7
1 0 7
1 0 7
1 0 7 and 7 seven times
how to do this
CONFIDENTIALITY NOTICE: This electronic message contains
information which may be legally confidential and or privileged and
does not in any case represent a firm ENERGY COMMODITY bid or offer
relating thereto which binds the sender without an additional
express written confirmation to that effect. The information is
intended solely for the individual or entity named above and access
by anyone else is unauthorized. If you are not the intended
recipient, any disclosure, copying, distribution, or use of the
contents of this information is prohibited and may be unlawful. If
you have received this electronic transmission in error, please
reply immediately to the sender that you have received the message
in error, and delete it. Thank you.
|