what is the need of INDEX in datasets?

Answer Posted / hari

This is mainly useful for the fast retrival of data (For ex
we have 559 in 1 lac obs then by index we can get the data
with out reading all the observations

Index are 2 type:

1.simple
2.Composite


ex-for simple


proc datasets lib=college;
modify time;
index create class;
run;


ex-for composite:


proc datasets library=college;
modify time;
index create names(=(name school);
run;

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What versions of SAS have you used (on which platforms)?

1011


describe the interaction table in sas di? : Sas-di

589


How do you add a number to a macro variable? : sas-macro

541


what is the difference between: x=a+b+c+d; and x=sum (of a, b, c ,d);? : Sas programming

605


how does sas handle missing values in assignment statements? : Sas programming

565






how does sas handle missing values in: assignment statements, functions, a merge, an update, sort order, formats, procs? : Sas programming

596


What are the table names in oracle database...?

2248


: and & modifiers.

857


What is the difference between %local and %global? : sas-macro

664


how can you put a "trace" in your program? : Sas programming

574


how to debug and test the sas program? : Sas-administrator

569


What does proc print, and proc contents are used for?

609


What would be the value of month at the end of data step execution and how many observations would be there?

571


What do you know about sas and what we do? : sas-grid-administration

597


Name and describe few sas character functions that are used for data cleaning in brief.

660