Explanation : This DATA STEP block attempts to create the `prob12_10` dataset by reading raw data provided in the `datalines` block. The `input` statement aims to define variables `GROUP1` to `GROUP3` as character (length 1) and `SCORE1` to `SCORE3` as numeric (length 3), specifying position and length for reading values. However, the presence of ` @code_sas_json/12.10.json` in the `input` statement constitutes a syntax error, as it is not a valid numeric column pointer or a usable file reference in this form. Consequently, the `prob12_10` dataset will not be created correctly or will be empty.
Copied!
data prob12_10;
input @code_sas_json/12.10.json (GROUP1-GROUP3) ($1. +4)
(SCORE1-SCORE3) (3. +2);
datalines;
A100 B 90 C 76
C 87 A 86 B 88
C 93 B 92 A 90
;
Explanation : This block uses `PROC PRINT` to attempt to display the contents of the `prob12_10` dataset. The output title is set to 'Problem 12.10'. Due to the error in the previous `DATA STEP`, this procedure would attempt to display a dataset that is not correctly formed or is empty.
Copied!
proc print;
title 'Problem 12.10';
run;
1
PROC PRINT;
2
title 'Problem 12.10';
3
RUN;
4
This material is provided "as is" by We Are Cas. There are no warranties, expressed or implied, as to merchantability or fitness for a particular purpose regarding the materials or code contained herein. We Are Cas is not responsible for errors in this material as it now exists or will exist, nor does We Are Cas provide technical support for it.
SAS and all other SAS Institute Inc. product or service names are registered trademarks or trademarks of SAS Institute Inc. in the USA and other countries. ® indicates USA registration. WeAreCAS is an independent community site and is not affiliated with SAS Institute Inc.
This site uses technical and analytical cookies to improve your experience.
Read more.