The input statement a identifies the physical name of

This preview shows page 2 - 6 out of 13 pages.

P2_Chp4_PracticeQ_solutions.docx

5 .   What type of input do we use when reading standard and nonstandard data in fixed columns ?
a. Column Input
b. Formatted input
c. List input
d. Named Input
e. All of the above
f. None of the above
Answer:  b.   Formatted input
6 .   What type of input do we use when reading standard data that is preceded by the name of the variable and an equal sign ?
Get answer to your question and much more
7 .   The INFILE statement
Get answer to your question and much more
8 .   The INPUT statement
Get answer to your question and much more
9 .   In the Code Below @ 1 tells SAS
a. The width of the input field
b. To move the pointer 1 position
c. Move the pointer to column 1
d. How to read data values stored in the field
e. A and D
f. B and C
Answer:  c.   Move the pointer to column 1
10 .   In the Code Below $ 4 . tells SAS
Get answer to your question and much more
11 .   When Writing INPUT specifications we must tell SAS ( Circle all that apply )
Get answer to your question and much more
12 .   Continue writing the INPUT statement to read Offer Date 13 . When does SAS load a new record into the input buffer ?
Get answer to your question and much more
13 .   When does SAS load a new record into the input buffer ?
a. When it reads a new INFILE statement
b. When it reads a new INPUT statement
c. When it reads “ @ 1 Cust_type 4 . ” In the input statement
d. Automatically when it does an implicit output implicit return
e. When it encounters a line pointer control ( / )
Answer:  b.   When it reads a new INPUT statement
16 .   Using a trailing @ in an input statement does what ? 3 things
Get answer to your question and much more
We have textbook solutions for you!
The document you are viewing contains questions related to this textbook.
Guide to UNIX Using Linux
The document you are viewing contains questions related to this textbook.
Chapter 7 / Exercise 16
Guide to UNIX Using Linux
Palmer
Expert Verified
8. The INPUT statement a. Identifies the physical name of the raw data file to read with an INPUT statement b. Is the physical name that the operating environment uses to access the file of raw data c. Refers to a temporary or permanent data set d. Describes the arrangement of values in the raw data file and assigns input values to the corresponding SAS variables e. Provides the name of the SAS data set being created
9. In the Code Below @1 tells SAS 2
We have textbook solutions for you!
The document you are viewing contains questions related to this textbook.
Guide to UNIX Using Linux
The document you are viewing contains questions related to this textbook.
Chapter 7 / Exercise 16
Guide to UNIX Using Linux
Palmer
Expert Verified
Programming 2: Chapter 4 Reading Raw Data Files
10. In the Code Below $4. tells SAS
11. When Writing INPUT specifications we must tell SAS (Circle all that apply)
3
Programming 2: Chapter 4 Reading Raw Data Files 12. Continue writing the INPUT statement to read Offer Date 13. When does SAS load a new record into the input buffer? a. When it reads a new INFILE statement b. When it reads a new INPUT statement c. When it reads “@1 Cust_type 4.” In the input statement d. Automatically when it does an implicit output implicit return e. When it encounters a line pointer control (/)
4
Programming 2: Chapter 4 Reading Raw Data Files 14. Write an INPUT statement to read the data from the raw data file below 15. Data salesQ1; Infile “&path\sales.dat”; Input SaleID 4. @6 Location $3.; If Location=’USA’ then Input @10 SaleDate mmddyy10. @20 Amount 7.; else if Location=’EUR’ then INPUT @10 SaleDate date9. @20 Amount commax7.; run; a. What line of code above during execution Loads he first values into the PDV : b. What line of code above during execution initialized the pdv : c. What line of code above during execution phase loads the input buffer:

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture