Description: programming languages Online Quiz - 257 | |
Number of Questions: 20 | |
Created by: Aliensbrain Bot | |
Tags: programming languages |
Find out the error in the following code? Libname output_dir “c:\mydocuments\output”; Data output_dir.test; Infile datalines dlm=’,’; Input name $ total; If total > 50; Datalines; Sharma,50 Thiyaga,90 Ashok,60 Run;
What is the length of variable a ? data temp; a=substr('joshi anand',1,3); run;
Which procedure can be used to see the descriptor portion of a dataset?
A SAS code has been executed and it has an error on the 10th line of the code. What will be the value of the automatic variable ERROR?
I want to create a 2 way cross tabulation frequency based on Country and Sales using FREQ procedure. From the given options pick the correct code?
Dataset Temp contains 1 observation and 30 variables. Which procedure can be used to convert it into 30 observations with 1 variable in an efficient manner?
What is the use of PUT function in a DATA step?
What is the output of the following sum statement? X1=9, X2=4, X3=1 Z=sum(of X1-X3);
What does the line hold specifier single trailing(@) do when used in an input statement?
At compile time when an external file is read, what items are created?
How many observations will be there in the output dataset person? Data person; infile datalines; input name $ dept $ age; if age le 30; datalines; John Sales 38 Mary Brown Acctng 32 Spielberg Manager 28 ;
Which of the following can be used to read numeric values that contain numeric values and commas into a SAS dataset?
How many observations will be there in the output dataset TEMP? Data temp; Set test (firstobs=50 obs=450); Run;
Which date function advances a date, time or date/time value by a given interval?
How does the following macros will resolve? What will be the output in log file? %let one=two; %let two=three; %let three=one; %put &one; %put &&one; %put &&&one;
How are numeric and character missing values represented internally in SAS?
How many variables will be there in the output dataset totmark? Data totmark; Set scores (keep=name mark1 mark2 ); Total = mark1 + mark2; Drop mark1 mark2; Run;
What is the SAS data value of 01-Jan-1960?
What is the use of %INCLUDE statement in a program?
What is the value stored in the variable x? Data test; name = ’TATA CONSULTANCY SERVICES’; b = ’C’; x = INDEX (name, b); Run;