The CARDS statement enables you to read instream data. Any number of consecutive commas are considered to be a single delimiter as a result of the DLM= option, and the length of each variable defaults to 8 bytes. Therefore, the values jones, brownjon, and spencer are assigned to Agent1, Agent2, and Agent3, respectively, for the first observation. The rest of the data on the record is not read by the INPUT statement and is not output to the data set.
Because the cards are one per line observation, this question only one row of data, so there is no second observation
Question : 1---+----10---+----20---+----30---+----40---+----50 TWOSTORY 1040 2 1SANDERS ROAD $55,850 CONDO 2150 4 2.5JEANS AVENUE $127,150 The following program is submitted using this file as input:
data work.houses; infile 'file-specification'; (insert INPUT statement here) run; Which one of the option from left image, INPUT statements reads the raw data file correctly?
Formatted input requires periods as part of the informat name. The period is missing from the variables Style and Street in Answer b, the variable Baths in Answer d, and the variable Price in Answer a (which is also missing a dollar sign to read the variable Street as a character value). formatted input
formatted input (+1, @ 20, etc.) after which the format to the "."
The following SAS program is submitted at the start of a new SAS session:
libname sasdata 'SAS-data-library'; data sasdata.sales; set sasdata.salesdata; profit=expenses-revenues; run; proc print data=sales; run;
Question : The SAS data set Sasdata.Salesdata has ten observations. Which one of the following explains why a report fails to generate?
The DATA step creates a permanent SAS data set, Sasdata.Salesdata. The PRINT procedure is printing a temporary SAS data set, Sales, that is stored in the Work library. At the beginning of the SAS session, Work.Sales does not exist.