Features: |
PROC PRINT statement options: : ROWS= ID statement options: : STYLE |
Other features: |
ODS RTF statement SAS data set options: : OBS= |
Data set: | EMPDATA |
data empdata;
input IdNumber $ 1-4 LastName $ 9-19 FirstName $ 20-29
City $ 30-42 State $ 43-44 /
Gender $ 1 JobCode $ 9-11 Salary 20-29 @30 Birth date9.
@43 Hired date9. HomePhone $ 54-65;
format birth hired date9.;
datalines;
1919 Adams Gerald Stamford CT
M TA2 34376 15SEP1970 07JUN2005 203/781-1255
1653 Alexander Susan Bridgeport CT
F ME2 35108 18OCT1972 12AUG1998 203/675-7715
. . . more lines of data . . .
1407 Grant Daniel Mt. Vernon NY
M PT1 68096 26MAR1977 21MAR1998 914/468-1616
1114 Green Janice New York NY
F TA2 32928 21SEP1977 30JUN2006 212/588-1092
;
proc print data=empdata(obs=12); id idnumber; title 'Personnel Data'; run;
proc print data=empdata(obs=12) rows=page; id idnumber; title 'Personnel Data'; run;
data empdata;
input IdNumber $ 1-4 LastName $ 9-19 FirstName $ 20-29
City $ 30-42 State $ 43-44 /
Gender $ 1 JobCode $ 9-11 Salary 20-29 @30 Birth date9.
@43 Hired date9. HomePhone $ 54-65;
format birth hired date9.;
datalines;
1919 Adams Gerald Stamford CT
M TA2 34376 15SEP1970 07JUN2005 203/781-1255
1653 Alexander Susan Bridgeport CT
F ME2 35108 18OCT1972 12AUG1998 203/675-7715
. . . more lines of data . . .
1407 Grant Daniel Mt. Vernon NY
M PT1 68096 26MAR1977 21MAR1998 914/468-1616
1114 Green Janice New York NY
F TA2 32928 21SEP1977 30JUN2006 212/588-1092
;
Personnel Data 1 Id First Number LastName Name City State Gender 1919 Adams Gerald Stamford CT M 1653 Alexander Susan Bridgeport CT F 1400 Apple Troy New York NY M 1350 Arthur Barbara New York NY F 1401 Avery Jerry Paterson NJ M 1499 Barefoot Joseph Princeton NJ M 1101 Baucom Walter New York NY M Id Job Number Code Salary Birth Hired HomePhone 1919 TA2 34376 15SEP70 07JUN05 203/781-1255 1653 ME2 35108 18OCT72 12AUG98 203/675-7715 1400 ME1 29769 08NOV85 19OCT06 212/586-0808 1350 FA3 32886 03SEP63 01AUG00 718/383-1549 1401 TA3 38822 16DEC68 20NOV93 201/732-8787 1499 ME3 43025 29APR62 10JUN95 201/812-5665 1101 SCP 18723 09JUN80 04OCT98 212/586-8060
Personnel Data 2 Id First Number LastName Name City State Gender 1333 Blair Justin Stamford CT M 1402 Blalock Ralph New York NY M 1479 Bostic Marie New York NY F 1403 Bowden Earl Bridgeport CT M 1739 Boyce Jonathan New York NY M Id Job Number Code Salary Birth Hired HomePhone 1333 PT2 88606 02APR79 13FEB03 203/781-1777 1402 TA2 32615 20JAN71 05DEC98 718/384-2849 1479 TA3 38785 25DEC66 08OCT03 718/384-8816 1403 ME1 28072 31JAN79 24DEC99 203/675-3434 1739 PT1 66517 28DEC82 30JAN00 212/587-1247
Personnel Data 3 Id First Number LastName Name City State Gender 1919 Adams Gerald Stamford CT M 1653 Alexander Susan Bridgeport CT F 1400 Apple Troy New York NY M 1350 Arthur Barbara New York NY F 1401 Avery Jerry Paterson NJ M 1499 Barefoot Joseph Princeton NJ M 1101 Baucom Walter New York NY M 1333 Blair Justin Stamford CT M 1402 Blalock Ralph New York NY M 1479 Bostic Marie New York NY F 1403 Bowden Earl Bridgeport CT M 1739 Boyce Jonathan New York NY M
Personnel Data 4 Id Job Number Code Salary Birth Hired HomePhone 1919 TA2 34376 15SEP70 07JUN05 203/781-1255 1653 ME2 35108 18OCT72 12AUG98 203/675-7715 1400 ME1 29769 08NOV85 19OCT06 212/586-0808 1350 FA3 32886 03SEP63 01AUG00 718/383-1549 1401 TA3 38822 16DEC68 20NOV93 201/732-8787 1499 ME3 43025 29APR62 10JUN95 201/812-5665 1101 SCP 18723 09JUN80 04OCT98 212/586-8060 1333 PT2 88606 02APR79 13FEB03 203/781-1777 1402 TA2 32615 20JAN71 05DEC98 718/384-2849 1479 TA3 38785 25DEC66 08OCT03 718/384-8816 1403 ME1 28072 31JAN79 24DEC99 203/675-3434 1739 PT1 66517 28DEC82 30JAN00 212/587-1247
options nodate pageno=1 linesize=64 pagesize=24;
ods rtf file='your_file.rtf';
proc print data=empdata(obs=12); id idnumber; title 'Personnel Data'; run;
ods rtf close;