What is _n_?

Answer Posted / amaran

Can i used _n_ in proc sql; Or its only for Datasteo

_n_ is a Autometic variable created in a datastep. It is a
part of PDV. It is used to store the iteration count of the
Input statement.

Proc SQL doesnot create a PDV. so _n_ variable cannot be
used there.

Is This Answer Correct ?    3 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain what is data step?

720


What is maximum storage capability of SAS?

899


what is data access? : Sas-di

594


What is the difference between input and infile statement?

675


what is the Population you used in your project, is it ITT or PP?

2171






what is SAS OPTIMIZATION?

1813


What is a method for assigning first.VAR and last.VAR to the BY group variable on unsorted data?

1991


what is sas and what are the functions? : Sas-administrator

528


what does the run statement do? : Sas programming

550


How do you debug and test your SAS programs?

1038


Mention the validation tools used in SAS?

646


Describe 5 ways to do a “table lookup” in SAS?

690


what is business intelligence? : Sas-bi

571


What is maximum number of rows and cols can be handled in SAS?

844


What are the difference between sas functions and procedures?

631