SAS

  Home  Data Warehouse  SAS


“SAS (Statistical Analysis System) frequently Asked Questions by expert members with experience in SAS. So get preparation for the SAS (Statistical Analysis System) job interview”



11 SAS Questions And Answers

8⟩ What is the use of catalog?

SAS CATALOG IS A TYPE OF SPECIAL SAS FILE THAT CONTAINS

ELEMENTS.MOST COMMMON ELEMENTS IN SAS CATALOG ARE 'FORMAT'

'SOURCE' OUTPUT,LOG EC.

PROC FORMAT IS USED TO CREATE THE FORMAT AND STORE THEN

IN THE SASCATALOG.

proc format library=SMA;

value $region

'1'='n orthwest'

'2'='southwest'

'3'='central'

;

run;

FORMAT NAME 'REGION' IS STORED IN CATALOG IN 'SMA' LIBRARY

TO KNOW THE CONTENTS OR TO MOVE THE CONTENTS OF ASA CATALOG

USE THE PROCEDURE 'PROC CATALOG'

 140 views

10⟩ What is validvarname and varnum? why we are using this options; explain with a syntax for this options?

The following example shows how the Pass-Through Facility

works with

VALIDVARNAME=UPPERCASE.

options validvarname=uppercase;

proc sql;

connect to oracle as tables(user=USERID orapw=passward

path=’INSTANCE’);

create table lab as

select lab_rslt, lab_test

from connection to oracle

(select "laboratory result$", "laboratory test$"

from DBMStable);

quit;

When we check the Output we observe that the variables in

the DBMS column is changed to upper case as well as V7

(default option) converts those variables into UPPERCASE

variables. Ex: " laboratory result$" becomes LAB_RSLT and "

laboratory test$" becomes LAB_TEST

VARNUM returns the number of a variable's position in a SAS

data set, or 0 if the variable is not in the SAS data set.

This is the same variable number that is next to the

variable in the output from PROC CONTENTS.

 161 views