Answered step by step
Verified Expert Solution
Question
1 Approved Answer
SAS program A. Consider the following SAS program: data work.workers; infile 'data-inc.txt' input @1 Company $20. @25 State $2. @; if State= then input
SAS program
A. Consider the following SAS program: data work.workers; infile 'data-inc.txt' input @1 Company $20. @25 State $2. @; if State=" " then input @30 Year; else input 030 City Year; input NumEmployees; run; proc print data-work.workers; run; Create an example data file that is read correctly by the SAS program shown above Your example must have the following properties: o at least five observations altogether at least two observations that use the THEN statement; . at least two observations that use the ELSE statement; . no missing data for the Company, Year, and NumEmployees variables; . no missing values of City when State is not missing Turn in a copy of your data file along with the output generated by the program. You may put them on a single page if they fit. Please read the comment about this problem on the bottom of the next page. A. Consider the following SAS program: data work.workers; infile 'data-inc.txt' input @1 Company $20. @25 State $2. @; if State=" " then input @30 Year; else input 030 City Year; input NumEmployees; run; proc print data-work.workers; run; Create an example data file that is read correctly by the SAS program shown above Your example must have the following properties: o at least five observations altogether at least two observations that use the THEN statement; . at least two observations that use the ELSE statement; . no missing data for the Company, Year, and NumEmployees variables; . no missing values of City when State is not missing Turn in a copy of your data file along with the output generated by the program. You may put them on a single page if they fit. Please read the comment about this problem on the bottom of the next pageStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started