Explore topic-wise InterviewSolutions in .

This section includes InterviewSolutions, each offering curated multiple-choice questions to sharpen your knowledge and support exam preparation. Choose a topic below to get started.

1.

Why Is A Stop Statement Needed For The Point=option On A Set Statement?

Answer»

When you use the POINT= option, you must include a STOP STATEMENT to stop DATA step PROCESSING, programming logic that checks for an invalid value of the POINT= variable, or Both. Because POINT= reads only those observations that are specified in the DO statement, SAS cannot read an end-of-file indicator as it would if the file were being read SEQUENTIALLY. Because reading an end-of-file indicator ENDS a DATA step automatically, failure to substitute another means of ENDING the DATA step when you use POINT= can cause the DATA step to go into a continuous loop.

When you use the POINT= option, you must include a STOP statement to stop DATA step processing, programming logic that checks for an invalid value of the POINT= variable, or Both. Because POINT= reads only those observations that are specified in the DO statement, SAS cannot read an end-of-file indicator as it would if the file were being read sequentially. Because reading an end-of-file indicator ends a DATA step automatically, failure to substitute another means of ending the DATA step when you use POINT= can cause the DATA step to go into a continuous loop.

2.

What Is Sas Graph?

Answer»

SAS/GRAPH SOFTWARE creates and DELIVERS ACCURATE, high-impact VISUALS that ENABLE decision makers to gain a quick understanding of critical business issues.

SAS/GRAPH software creates and delivers accurate, high-impact visuals that enable decision makers to gain a quick understanding of critical business issues.

3.

What Is The Use Of Proc Sql?

Answer»

PROC SQL is a powerful tool in SAS, which combines the functionality of data and proc steps. PROC SQL can SORT, summarize, subset, JOIN (merge), and concatenate datasets, CREATE new variables, and print the results or create a new dataset all in one step! PROC SQL uses fewer resources when compared to that of data and proc steps. To join files in PROC SQL it does not require to sort the data prior to merging, which is MUST, is data merge.

PROC SQL is a powerful tool in SAS, which combines the functionality of data and proc steps. PROC SQL can sort, summarize, subset, join (merge), and concatenate datasets, create new variables, and print the results or create a new dataset all in one step! PROC SQL uses fewer resources when compared to that of data and proc steps. To join files in PROC SQL it does not require to sort the data prior to merging, which is must, is data merge.

4.

How Can You Import .csv File In To Sas?

Answer»

To create CSV FILE, we have to OPEN notepad, then, declare the VARIABLES.

proc import DATAFILE='E:age.csv'
out=sarath dbms=csv replace;
getnames=yes;
run;

To create CSV file, we have to open notepad, then, declare the variables.

5.

How Can You Create Zero Observation Dataset?

Answer»

Creating a data set by USING the like clause.ex: PROC sql;create table latha.emp like oracle.emp;quit;In this the like clause triggers the existing table structure to be copied to the new table. using this method result in the creation of an EMPTY table.
In the editor window we WRITE%include 'path of the sas file';run;if it is with non-windowing environment no need to give run STATEMENT.

Creating a data set by using the like clause.ex: proc sql;create table latha.emp like oracle.emp;quit;In this the like clause triggers the existing table structure to be copied to the new table. using this method result in the creation of an empty table.
In the editor window we write%include 'path of the sas file';run;if it is with non-windowing environment no need to give run statement.

6.

What Are Input Dataset And Output Dataset Options?

Answer»

Input data set options are obs, firstobs, where, in OUTPUT data set options COMPRESS, reuse.Both input and output dataset options include KEEP, DROP, RENAME, obs, first obs.

Input data set options are obs, firstobs, where, in output data set options compress, reuse.Both input and output dataset options include keep, drop, rename, obs, first obs.

7.

What Is Enterprise Guide? What Is The Use Of It?

Answer»

It is an APPROACH to import text files with SAS (It COMES FREE with Base SAS version 9.0).

It is an approach to import text files with SAS (It comes free with Base SAS version 9.0).

8.

What Is The Main Difference Between Rename And Label?

Answer»

1. LABEL is global and rename is local i.e., label statement can be used EITHER in proc or DATA step where as rename should be used only in data step. 2. If we rename a variable, old name will be LOST but if we label a variable its short name (old name) exists along with its DESCRIPTIVE name.

1. Label is global and rename is local i.e., label statement can be used either in proc or data step where as rename should be used only in data step. 2. If we rename a variable, old name will be lost but if we label a variable its short name (old name) exists along with its descriptive name.

9.

What Is The Difference Between Nodup And Nodupkey Options?

Answer»

NODUP COMPARES all the VARIABLES in our DATASET while NODUPKEY compares just the BY variables.

NODUP compares all the variables in our dataset while NODUPKEY compares just the BY variables.

10.

Do You Prefer Proc Report Or Proc Tabulate? Why?

Answer»

I prefer to USE Proc REPORT until I have to create cross tabulation TABLES, because, It gives me so many options to modify the look up of my table, (ex: Width OPTION, by this we can change the width of each column in the table) Where as Proc tabulate UNABLE to produce some of the things in my table. Ex: tabulate doesn’t produce n (%) in the desirable format.

I prefer to use Proc report until I have to create cross tabulation tables, because, It gives me so many options to modify the look up of my table, (ex: Width option, by this we can change the width of each column in the table) Where as Proc tabulate unable to produce some of the things in my table. Ex: tabulate doesn’t produce n (%) in the desirable format.

11.

What Techniques And/or Procs Do You Use For Tables?

Answer»

Proc FREQ, Proc univariate, Proc Tabulate & Proc REPORT.

Proc Freq, Proc univariate, Proc Tabulate & Proc Report.

12.

How Do The In= Variables Improve The Capability Of A Merge?

Answer»

The IN=variablesWhat if you want to KEEP in the output data set of a merge only the matches (only those observations to which both input data SETS contribute)? SAS will set up for you special temporary variables, called the "IN=" variables, so that you can do this and more. Here's what you have to do: signal to SAS on the MERGE statement that you need the IN= variables for the input data set(s) use the IN= variables in the data step APPROPRIATELY, So to keep only the matches in the match-merge above, ask for the IN= variables and use them:data three;merge one(in=x) two(in=y); /* x & y are your choices of NAMES */by id; /* for the IN= variables for data */if x=1 and y=1; /* sets one and two RESPECTIVELY */run;

The IN=variablesWhat if you want to keep in the output data set of a merge only the matches (only those observations to which both input data sets contribute)? SAS will set up for you special temporary variables, called the "IN=" variables, so that you can do this and more. Here's what you have to do: signal to SAS on the MERGE statement that you need the IN= variables for the input data set(s) use the IN= variables in the data step appropriately, So to keep only the matches in the match-merge above, ask for the IN= variables and use them:data three;merge one(in=x) two(in=y); /* x & y are your choices of names */by id; /* for the IN= variables for data */if x=1 and y=1; /* sets one and two respectively */run;

13.

Which Data Set Is The Controlling Data Set In The Merge Statement?

Answer»

Dataset having the LESS number of OBSERVATIONS control the DATA set in the MERGE statement.

Dataset having the less number of observations control the data set in the merge statement.

14.

What Are Some Differences Between Proc Summary And Proc Means?

Answer»

Proc MEANS by default give you the OUTPUT in the output window and you can stop this by the option NOPRINT and can take the output in the separate file by the STATEMENT OUTPUTOUT= , But, proc summary doesn't give the default output, we have to explicitly give the output statement and then PRINT the data by giving PRINT option to see the RESULT.

Proc means by default give you the output in the output window and you can stop this by the option NOPRINT and can take the output in the separate file by the statement OUTPUTOUT= , But, proc summary doesn't give the default output, we have to explicitly give the output statement and then print the data by giving PRINT option to see the result.

15.

What Is The Difference Between Calculating The 'mean' Using The Mean Function And Proc Means?

Answer»

By default PROC Means calculate the summary statistics LIKE N, Mean, Std deviation, Minimum and maximum, Where as Mean FUNCTION compute only the mean values.

By default Proc Means calculate the summary statistics like N, Mean, Std deviation, Minimum and maximum, Where as Mean function compute only the mean values.

16.

First, How Do You Want Missing Values Handled?

Answer»

The SUM function returns the sum of non-missing values. If you choose addition, you will get a missing value for the result if any of the fields are missing. Which one is appropriate depends upon your needs.However, there is an ADVANTAGE to use the SUM function even if you want the results to be missing. If you have more than a couple fields, you can OFTEN use shortcuts in writing the field names If your fields are not numbered sequentially but are stored in the program data VECTOR together then you can use: total=SUM(of fielda--zfield); Just make sure you remember the “of” and the double dashes or your code will run but you won’t get your intended results. Mean is another function where the function will calculate differently than the writing out the FORMULA if you have missing values.There is a field CONTAINING a date. It needs to be displayed in the format "ddmonyy" if it's before 1975, "dd mon ccyy" if it's after 1985, and as 'Disco Years' if it's between 1975 and 1985.

The SUM function returns the sum of non-missing values. If you choose addition, you will get a missing value for the result if any of the fields are missing. Which one is appropriate depends upon your needs.However, there is an advantage to use the SUM function even if you want the results to be missing. If you have more than a couple fields, you can often use shortcuts in writing the field names If your fields are not numbered sequentially but are stored in the program data vector together then you can use: total=SUM(of fielda--zfield); Just make sure you remember the “of” and the double dashes or your code will run but you won’t get your intended results. Mean is another function where the function will calculate differently than the writing out the formula if you have missing values.There is a field containing a date. It needs to be displayed in the format "ddmonyy" if it's before 1975, "dd mon ccyy" if it's after 1985, and as 'Disco Years' if it's between 1975 and 1985.

17.

What Is The Difference Between: X=a+b+c+d; And X=sum (of A, B, C ,d);?

Answer»

Is ANYONE WONDERING why you wouldn’t just USE total=field1+field2+field3;

Is anyone wondering why you wouldn’t just use total=field1+field2+field3;

18.

Do You Need To Know If There Are Any Missing Values?

Answer»

Just USE: missing_values=MISSING(field1,field2,field3);
This function SIMPLY returns 0 if there aren't any or 1 if there are missing values.If you need to know how many missing values you have then use num_missing=NMISS(field1,field2,field3);
You can also FIND the NUMBER of non-missing values with non_missing=N (field1,field2,field3);

Just use: missing_values=MISSING(field1,field2,field3);
This function simply returns 0 if there aren't any or 1 if there are missing values.If you need to know how many missing values you have then use num_missing=NMISS(field1,field2,field3);
You can also find the number of non-missing values with non_missing=N (field1,field2,field3);

19.

How Would You Determine The Number Of Missing Or Nonmissing Values In Computations?

Answer»

To determine the NUMBER of missing VALUES that are excluded in a computation, use the NMISS function.

data _null_;
m = . ;
y = 4 ;
Z = 0 ;
N = N(m , y, z);
NMISS = NMISS (m , y, z);
run;

The above program RESULTS in N = 2 (Number of non missing values) and NMISS = 1 (number of missing values).

To determine the number of missing values that are excluded in a computation, use the NMISS function.

data _null_;
m = . ;
y = 4 ;
z = 0 ;
N = N(m , y, z);
NMISS = NMISS (m , y, z);
run;

The above program results in N = 2 (Number of non missing values) and NMISS = 1 (number of missing values).

20.

In Array Processing, What Does The Dim Function Do?

Answer»

DIM: It is used to RETURN the number of ELEMENTS in the array. When we use Dim function we would have to re –specify the stop value of an iterative DO statement if U change the DIMENSION of the array.

DIM: It is used to return the number of elements in the array. When we use Dim function we would have to re –specify the stop value of an iterative DO statement if u change the dimension of the array.

21.

How Might You Use Mod And Int On Numeric To Mimic Substr On Character Strings?

Answer»

The FIRST argument to the MOD function is a numeric, the second is a non-zero numeric; the result is the remainder when the integer quotient of argument-1 is divided by argument-2. The INT function TAKES only one argument and returns the integer PORTION of an argument, TRUNCATING the decimal portion. Note that the argument can be an expression.

DATA NEW ;
A = 123456 ;
X = INT( A/1000 ) ;
Y = MOD( A, 1000 ) ;
Z = MOD( INT( A/100 ), 100 ) ;
PUT A= X= Y= Z= ;
RUN ;

Result:
A=123456
X=123
Y=456
Z=34.

The first argument to the MOD function is a numeric, the second is a non-zero numeric; the result is the remainder when the integer quotient of argument-1 is divided by argument-2. The INT function takes only one argument and returns the integer portion of an argument, truncating the decimal portion. Note that the argument can be an expression.

DATA NEW ;
A = 123456 ;
X = INT( A/1000 ) ;
Y = MOD( A, 1000 ) ;
Z = MOD( INT( A/100 ), 100 ) ;
PUT A= X= Y= Z= ;
RUN ;

Result:
A=123456
X=123
Y=456
Z=34.

22.

What Do The Mod And Int Function Do? What Do The Pad And Dim Functions Do?

Answer»

MOD: Modulo is a constant or numeric VARIABLE, the function returns the reminder after numeric value divided by modulo.

INT: It returns the integer portion of a numeric value truncating the decimal portion.

PAD: it pads each record with blanks so that all DATA lines have the same length. It is used in the INFILE statement. It is useful only when missing data OCCURS at the end of the record.

CATX: concatenate character STRINGS, removes leading and trailing blanks and INSERTS separators.

SCAN: it returns a specified word from a character value. Scan function assigns a length of 200 to each target variable.

SUBSTR: extracts a sub string and replaces character values.Extraction of a substring:
Middleinitial=substr(middlename,1,1); Replacing character values: substr (phone,1,3)=’433’; If SUBSTR function is on the left side of a statement, the function replaces the contents of the character variable.

TRIM: trims the trailing blanks from the character values.

SCAN vs. SUBSTR: SCAN extracts words within a value that is marked by delimiters. SUBSTR extracts a portion of the value by stating the specific location. It is best used when we know the exact position of the sub string to extract from a character value.

MOD: Modulo is a constant or numeric variable, the function returns the reminder after numeric value divided by modulo.

INT: It returns the integer portion of a numeric value truncating the decimal portion.

PAD: it pads each record with blanks so that all data lines have the same length. It is used in the INFILE statement. It is useful only when missing data occurs at the end of the record.

CATX: concatenate character strings, removes leading and trailing blanks and inserts separators.

SCAN: it returns a specified word from a character value. Scan function assigns a length of 200 to each target variable.

SUBSTR: extracts a sub string and replaces character values.Extraction of a substring:
Middleinitial=substr(middlename,1,1); Replacing character values: substr (phone,1,3)=’433’; If SUBSTR function is on the left side of a statement, the function replaces the contents of the character variable.

TRIM: trims the trailing blanks from the character values.

SCAN vs. SUBSTR: SCAN extracts words within a value that is marked by delimiters. SUBSTR extracts a portion of the value by stating the specific location. It is best used when we know the exact position of the sub string to extract from a character value.

23.

Which Date Function Advances A Date, Time Or Datetime Value By A Given Interval?

Answer»

INTNX: INTNX FUNCTION ADVANCES a date, time, or datetime value by a given interval, and RETURNS a date, time, or datetime value.
Ex: INTNX(interval,start-from,number-of-increments,alignment)

INTCK: INTCK(interval,start-of-period,end-of-period) is an interval functioncounts the number of intervals between TWO give SAS dates, Time and/or datetime.

DATETIME () returns the current date and time of day.

DATDIF (sdate,edate,BASIS): returns the number of days between two dates.

INTNX: INTNX function advances a date, time, or datetime value by a given interval, and returns a date, time, or datetime value.
Ex: INTNX(interval,start-from,number-of-increments,alignment)

INTCK: INTCK(interval,start-of-period,end-of-period) is an interval functioncounts the number of intervals between two give SAS dates, Time and/or datetime.

DATETIME () returns the current date and time of day.

DATDIF (sdate,edate,basis): returns the number of days between two dates.

24.

What Do The Put And Input Functions Do?

Answer»

INPUT function CONVERTS character DATA values to NUMERIC values.
EX: for INPUT: INPUT (source, informat).

PUT function converts numeric values to character values.
For PUT: PUT (source, format).

INPUT function converts character data values to numeric values.
EX: for INPUT: INPUT (source, informat).

PUT function converts numeric values to character values.
For PUT: PUT (source, format).

25.

What Is The Significance Of The 'of' In X=sum (of A1-a4, A6, A9);

Answer»

If don’t use the OF FUNCTION it MIGHT not be interpreted as we expect. For example the function above calculates the SUM of A1 minus a4 PLUS a6 and a9 and not the whole sum of a1 to a4 & a6 and a9. It is true for mean option also.

If don’t use the OF function it might not be interpreted as we expect. For example the function above calculates the sum of a1 minus a4 plus a6 and a9 and not the whole sum of a1 to a4 & a6 and a9. It is true for mean option also.

26.

What Other Sas Products Have You Used And Consider Yourself Proficient In Using?

Answer»

Data _NULL_ STATEMENT, PROC Means, Proc REPORT, Proc TABULATE, Proc freq and Proc print, Proc Univariate etc.

Data _NULL_ statement, Proc Means, Proc Report, Proc tabulate, Proc freq and Proc print, Proc Univariate etc.

27.

Name Several Ways To Achieve Efficiency In Your Program?

Answer»

Efficiency and PERFORMANCE strategies can be classified into 5 DIFFERENT areas.
•CPU time
•Data Storage
• Elapsed time
• Input/Output
• Memory CPU Time and Elapsed Time- BASE line measurements.

Efficiency and performance strategies can be classified into 5 different areas.
•CPU time
•Data Storage
• Elapsed time
• Input/Output
• Memory CPU Time and Elapsed Time- Base line measurements.

28.

What Has Been Your Most Common Programming Mistake?

Answer»

MISSING semicolon and not CHECKING LOG after submitting PROGRAM, Not using debugging techniques and not using Fsview OPTION vigorously.

Missing semicolon and not checking log after submitting program, Not using debugging techniques and not using Fsview option vigorously.

29.

What Differrence Did You Find Among Version 6 8 And 9 Of Sas?

Answer»

The SAS 9 Architecture is fundamentally different from any prior version of SAS. In the SAS 9 architecture, SAS relies on a new component, the Metadata SERVER, to PROVIDE an information layer between the PROGRAMS and the data they access. Metadata, such as security permissions for SAS LIBRARIES and where the various SAS servers are running, are maintained in a COMMON repository.

The SAS 9 Architecture is fundamentally different from any prior version of SAS. In the SAS 9 architecture, SAS relies on a new component, the Metadata Server, to provide an information layer between the programs and the data they access. Metadata, such as security permissions for SAS libraries and where the various SAS servers are running, are maintained in a common repository.

30.

What Are The New Features Included In The New Version Of Sas I.e., Sas9.1.3?

Answer»

The main advantage of version 9 is faster execution of applications and centralized access of data and support.

There are lots of changes has been made in the version 9 when we compared with the version 8. The following are the few:

  • SAS version 9 supports Formats longer than 8 bytes & is not POSSIBLE with version 8.
  • Length for Numeric format allowed in version 9 is 32 where as 8 in version 8.
  • Length for Character NAMES in version 9 is 31 where as in version 8 is 32.
  • Length for numeric informat in version 9 is 31, 8 in version 8.

Length for character names is 30, 32 in version 8.3 new INFORMATS are available in version 9 to convert various date, time and datetime forms of data into a SAS date or SAS time.

  • ANYDTDTEW. - Converts to a SAS date value
  • ANYDTTMEW. - Converts to a SAS time value.
  • ANYDTDTMW. -Converts to a SAS datetime value.CALL SYMPUTX Macro statement is added in the version 9 which creates a macro variable at execution time in the data step by
  • Trimming trailing blanks
  • Automatically converting numeric value to character.

New ODS option (COLUMN OPTION) is included to create a multiple columns in the output.

The main advantage of version 9 is faster execution of applications and centralized access of data and support.

There are lots of changes has been made in the version 9 when we compared with the version 8. The following are the few:

Length for character names is 30, 32 in version 8.3 new informats are available in version 9 to convert various date, time and datetime forms of data into a SAS date or SAS time.

New ODS option (COLUMN OPTION) is included to create a multiple columns in the output.

31.

What Are The Scrubbing Procedures In Sas?

Answer»

PROC Sort with nodupkey option, because it will ELIMINATE the DUPLICATE VALUES.

Proc Sort with nodupkey option, because it will eliminate the duplicate values.

32.

What Is The Purpose Of Using The N=ps Option?

Answer»

The N=PS option creates a buffer in memory which is large ENOUGH to store PAGESIZE (PS) LINES and enables a page to be FORMATTED RANDOMLY prior to it being printed.

The N=PS option creates a buffer in memory which is large enough to store PAGESIZE (PS) lines and enables a page to be formatted randomly prior to it being printed.

33.

What Are Sas/access And Sas/connect?

Answer»

SAS/Access only process through the DATABASES like ORACLE, SQL-SERVER, Ms-Access etc.
SAS/Connect only use Server connection.

SAS/Access only process through the databases like Oracle, SQL-server, Ms-Access etc.
SAS/Connect only use Server connection.

34.

Which Date Functions Advances A Date Time Or Date/time Value By A Given Interval?

Answer»

INTNX.

INTNX.

35.

How Are Numeric And Character Missing Values Represented Internally?

Answer»

CHARACTER as BLANK or and NUMERIC as.

Character as Blank or and Numeric as.

36.

How Can You Put A "trace" In Your Program?

Answer»

By USING ODS TRACE ON.

By using ODS TRACE ON.

37.

What Is The Purpose Of _error_?

Answer»

It has only to VALUES, which are 1 for ERROR and 0 for no error.

It has only to values, which are 1 for error and 0 for no error.

38.

What Can You Learn From The Sas Log When Debugging?

Answer»

It will DISPLAY the EXECUTION of whole program and the logic. It will ALSO display the error with line number so that you can and EDIT the program.

It will display the execution of whole program and the logic. It will also display the error with line number so that you can and edit the program.

39.

How Could You Generate Test Data With No Input Data?

Answer»

USING DATA NULL and PUT STATEMENT.

Using Data Null and put statement.

40.

For What Purpose Would You Use The Retain Statement?

Answer»

The retain statement is used to hold the values of variables across ITERATIONS of the data step. Normally, all variables in the data step are SET to missing at the start of each iteration of the data step. What is the order of evaluation of the comparison OPERATORS: + - * / ** ()?A) (), **, *, /, +, -.

The retain statement is used to hold the values of variables across iterations of the data step. Normally, all variables in the data step are set to missing at the start of each iteration of the data step. What is the order of evaluation of the comparison operators: + - * / ** ()?A) (), **, *, /, +, -.

41.

What Are _numeric_ And _character_ And What Do They Do?

Answer»

Will either READ or writes all NUMERIC and CHARACTER variables in DATASET.

Will either read or writes all numeric and character variables in dataset.

42.

If You Were Told To Create Many Records From One Record, Show How You Would Do This Using Array And With Proc Transpose?

Answer»

Declare ARRAY for number of VARIABLES in the record and then used Do loop Proc Transpose with VAR statement.

Declare array for number of variables in the record and then used Do loop Proc Transpose with VAR statement.

43.

What Is The Different Between Functions And Procs That Calculate The Same Simple Descriptive Statistics?

Answer»

Proc can be USED with wider SCOPE and the results can be sent to a different DATASET. Functions USUALLY affect the EXISTING datasets.

Proc can be used with wider scope and the results can be sent to a different dataset. Functions usually affect the existing datasets.

44.

How Would You Create A Data Set With 1 Observation And 30 Variables From A Data Set With 30 Observations And 1 Variable?

Answer»

USING PROC TRANSPOSE.

Using PROC TRANSPOSE.

45.

What Are Some Problems You Might Encounter In Processing Missing Values? In Data Steps? Arithmetic? Comparisons? Functions? Classifying Data?

Answer»

The RESULT of any operation with MISSING value will result in missing value. Most SAS STATISTICAL procedures exclude observations with any missing variable values from an analysis.

The result of any operation with missing value will result in missing value. Most SAS statistical procedures exclude observations with any missing variable values from an analysis.

46.

What Versions Of Sas Have You Used (on Which Platforms)?

Answer»

SAS 9.1.3,9.0, 8.2 in WINDOWS and UNIX, SAS 7 and 6.12.

SAS 9.1.3,9.0, 8.2 in Windows and UNIX, SAS 7 and 6.12.

47.

What Areas Of Sas Are You Most Interested In?

Answer»

BASE, STAT, GRAPH, ETSBriefly.

BASE, STAT, GRAPH, ETSBriefly.

48.

How Do You Debug And Test Your Sas Programs?

Answer»

FIRST thing is LOOK into Log for errors or warning or NOTE in some cases or use the debugger in SAS data step.

First thing is look into Log for errors or warning or NOTE in some cases or use the debugger in SAS data step.

49.

What Is A Method For Assigning First.var And Last.var To The By Groupvariable On Unsorted Data?

Answer»

In UNSORTED DATA you can't use FIRST. or LAST.

In unsorted data you can't use First. or Last.

50.

What Is The Different Between Functions And Procs That Calculate Thesame Simple Descriptive Statistics?

Answer»

Functions can used inside the data step and on the same data set but with proc's you can create a new data SETS to OUTPUT the RESULTS.

Functions can used inside the data step and on the same data set but with proc's you can create a new data sets to output the results.