The following SAS program is submitted: proc datasets lib = sasuser; contents data = class varnum; quit; Which one of the following is the purpose of the VARNUM option?
VARNUM: Print a list of the variables by their logical position in the data set. Without varnum, proc contents will print the variables in alphabetic order. varnum makes proc contents to print the variables in the order they were created. VARNUM returns the variables logical position in the dataset from when it was created in comparison to the others. By default the output in descriptor information is in the way as to create variables in alphabatical order if u want ur variables to be in the order in which they were used in input statement in data set varnum is be used
Question :
The following SAS program is submitted: proc contents data = sasuser.airplanes; run; Which one of the following is produced as output?
1. the data portion of every data set in the SASUSER library 2. the data portion of the data set SASUSER.AIRPLANES only 3. Access Mostly Uused Products by 50000+ Subscribers 4. the descriptor portion of the data set SASUSER.AIRPLANES only
--------10-------20-------30 John McCloskey 35 71 June Rosesette 10 43 Tineke Jones 9 37 The following SAS program is submitted using the raw data file as input: data work.homework; infile 'file-specification'; input name $ age height; if age LE 10; run; How many observations will the WORK.HOMEWORK data set contain?
Name variable has first name and last name. In input we had only name $ and no line pointer therefore it takes the first name as name and takes the family name as age, but family name is character variable it will be looking numeric value therefore it treats as missing variable then as height it will take 35 in the first observation Results is as follows inspite of error message in log.
Obs name age height 1 John . 35 2 June . 10 3 Tineke . 9
Numeric missing values are treated as extremely small negative numbers.