combine - dm 'log;clear;output;clear;'; o options ps=50...

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
dm 'log;clear;output;clear;'; options ps=50 ls=75 pageno=1; o *********************************************************************; ** **; ** COURSE: STAT 6360 **; ** PURPOSE: Show how to combine data sets using SAS **; *********************************************************************; * *The following title will appear as the first line of every page in the output window; title1 'STAT 6360'; t data boys; input name $ sex $ age height teacher $; datalines; Tom M 12 62 Smith Bob M 13 57 Green Joe M 11 59 Green Harry M 12 53 Green William M 13 60 Smith John M 11 57 Smith Richard M 11 55 Green ; data girls; input name $ age sex $ teacher $; datalines; Sharice 13 F Smith Mary 12 F Smith Ellen 11 F Green Carol 11 F Green Chris 13 F Smith Claire 12 F Green Raye 13 F Smith ; data allkids; set boys girls; run; r title2 "printout of allkids data set with boys first"; proc print data = allkids; run; r data allkids2; set girls boys; run; r title2 "printout of allkids data set with girls first"; proc print data = allkids2; run; r *Use proc append; proc append BASE=boys DATA=girls; run; r
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
title2 "printout of the new boys data set"; proc print data =boys; run; r data exam; input id examdate mmddyy10. sex age height weight sbp dbp;
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 5

combine - dm 'log;clear;output;clear;'; o options ps=50...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online