SAS Programming Fundamentals
Questions covering SAS programming concepts including data step, procedures, formats, ODS, and SAS components
Questions
Which program displays a listing of all data sets in the SASUSER library?
- proc contents lib=sasuser.all;
- proc contents data=sasuser.all;
- proc content data=sasuser.all;
- proc contents data=sasuser.all;
Which ODS statement option terminates output being written to an HTML file?
- END
- QUIT
- CLOSE
- STOP
The following SAS statement is submitted: data work.sales; do year=1 to 5; do month=1 o 12; x+1; end; end; run; How many observations are written to the WORK.SALES data set?
- 0
- 1
- 5
- 60
The following program is submitted: proc contents data=sashelp.class varnum; quit; What does VARNUM option print?
- a list of variable names
- the total number of variables
- a list of variable names in the alphabetic order
- a list of variable names in the order of their logical position
The value 110700 is stored in a numeric variable named SALARY. Which FORMAT statement displays the value as $110,700.00 in a report?
- format salary dollar11.2;
- format salary comma11.2;
- format dollar8.2;
- format salary comma8.2 dollar8.2;
What is the purpose of MISSOVER option in an INFILE statement?
- It prevents SAS from loading a new record when the end of the current record is reached
- It enables SAS to scan the input data records until the character string that is specified in the @'character-string' expression is round
- It enables SAS to continue to read the next input record if it does not find values in the current input file
- It causes the data step to stop processing if an input statement reaches the end of the current record without finding values for the variables
Given the following raw record: 07Jan2007 Which INFORMAT reads this raw date and stores it as a SAS date value?
- dmy9.
- date9.
- ddmmyy9.
- ddmmyyyy9.
A user defined format has been created using the FORMAT procedure.Where is it stored?
- in a SAS catalog
- in an external binary file
- in a SAS data set in the WORK library
- in a SAS data set in a permanent library
The following SAS program is submitted: data null; set old; put var1 var2; run; Where is the output written?
- to the SAS log file
- to the SAS data set NULL
- to a raw data file that was recently open
- none of these
The SAS program is submitted:
data combine;
country='Italy, Russia, ireland';
found=find(country,'i');
run;
What is the value of the variable found in the output data set?
- 1
- 12
- Ireland
- Italy
ODS Stands for
- Output Data System
- Output Delivery System
- Object Data Software
- Output Data Storage
PDV Stands for
- Project Design Vector
- Program Design Vector
- Program Data Vector
- Program Duplicate Vector
N=PS,In this, PS referred to
- Program Size
- Page Soft
- Program Software
- Page Size
SAS Stands for
- Statistical Analysis Software
- Statistical Analytics System
- Statistical Analytics Software
- Statistical Analysis System
BASE SAS is commonly used for
- Report Generation , Mathematical and Data Analysis
- Interface to DB2
- User friendly windowing applications
- Communication with remote SAS sessions
SAS / ACCESS is used as
- Communication with remote SAS sessions
- Interactive data entry & retrieval facilities
- Interface to DB2
- Creation of 3D objects , animation & prototyping
SAS / AF
- Concurrent update access to SAS files
- User friendly windowing applications
- Visual representation of data analysis
- Communication with remote SAS sessions
SAS / CONNECT is used -
- Report Generation , Mathematical and Data Analysis
- Interface to DB2
- User friendly windowing applications
- Communication with remote SAS sessions
SAS / FSP is for Creation of 3D objects , animation & prototyping
- True
- False
How many packages available in java?
- 121
- 122
- Unlimited
- 123