• Wrong document? Swap it for free
  • Written by students who passed
  • Immediately available after payment
  • Read online or as PDF
Sell
Where do you study
Your language
Document preview thumbnail
Preview 2 out of 6 pages
Exam (elaborations)

SAS Programming Questions with Correct Solutions Rated A+

Document preview thumbnail
Preview 2 out of 6 pages

[Ch.1] PROC SQL - - SAS procedure to query data sets - Can use in place of data step with less code - data set = table - observation = row - variable = column - a language that describes WHAT you want to do but not how to do it - picks the most efficient processing order [Ch.1] In your PROC SQL code, can you include SAS features that do not conform to the ANSI standard? - YES [Ch.1] The Structure of a PROC SQL Step - PROC SQL options; other statements quit; No run statement needed because of run-group processing [Ch.1] What could you add to the end of this program to stop PROC SQL from running? Select all that apply. - QUIT statement DATA step another PROC step [Ch.1] Using a SELECT Statement - - retrieves data from one or more tables - creates a report by default - made up of clauses - can contain a combination of 6 clauses SELECT item, item,* FROM* WHERE GROUP BY HAVING ORDER BY - each clause does NOT end in semicolon - just one at end - order of column names in select clause determine order they appear in the report - clauses must appear in this order - each SELECT statement generates a report - items in SELECT statement separated by commas [Ch.1] What order must the clauses in the SELECT statement appear? - 1. SELECT clause 2. FROM clause 3. WHERE clause 4. GROUP BY clause 5. HAVING clause 6. ORDER BY clause [Ch.1] Checking PROC SQL Syntax Without Executing the Program - Use VALIDATE statement or NOEXEC option Use VALIDATE statement only before the SELECT statement Must use VALIDATE before each SELECT statement if there are multiple No report created - log will indicate if query has correct syntax NOEXEC in PROC SQL prevents the code from executing and check syntax of all statements Use RESET EXEC statement to reset NOEXEC options [Ch.1] For which of the following PROC SQL statements can you use the VALIDATE statement to check the syntax? Select all that apply. A) select Customer_ID from 1_2007 intersect select Customer_ID from 2_2007; B) describe 1_2007; C) select Employee_Name, City, Birth_Date from yee_payroll as p, yee_addresses as a where p.Employee_ID=a.Employee_ID; D) alter table yee_payroll modify Phone_Type label='Work, Home, Cell'; - A & C You can use the VALIDATE statement with any SELECT statement, but not with other statements. [Ch.1] For which of the following programs will PROC SQL check the syntax without executing the code? a. proc sql; select * from yee_phones; quit; b. proc sql noexec; select * from yee_phones; quit;


Document information

Uploaded on
September 4, 2023
Number of pages
6
Written in
2023/2024
Type
Exam (elaborations)
Contains
Questions & answers
$9.99

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
TeeGrades
3.5
(53)
Sold
206
Followers
125
Items
5366
Last sold
1 month ago




Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions

Whoops! We can’t load your doc right now. Try again or contact support.