Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

At compile time when a SAS data set is read, what items are
created?

Answer Posted / dharmendra sharma

Sas process data steps in two phase.
1) Compilation phase
2) Execution Phase

Compilation phase :- When sas see the 'DATA' statement it get to know that it needs to process this data-steps. During this compilation phase SAS did some pre-house preparation. In this case it set aside some portion of memory for storing sas dataset.

It initially creates input buffer that holds one line (observation) one time.

For this first it read INFILE from the dataset statement and then get to know that all types of variable we are going to read from the infile. It then find out that which variable is of what type and what it the record length. If we are reading list input (infile seperated using space delimeters) then it will assign 8 bytes length to each variable.


for characher 8 bytes means ---->>> 8 character.
for Numeric 8 bytes means ---->>> 14 to 15 significant digits.

Then this all information is stored in to the Descriptor portion. Here Compilation phase ended.

At the starting of Execution phase. Sas reads values from the input buffer and then stores these information in data variables one by one. And the values are stored in PDV, which write value in dataset at the end of the datastep --->>> because automatically sas put a OUTPUT statement at the end of each datastep.

During compilation phase sas also creates two variable autmatically:-

_N_ and _ERROR_

:) I hope we can have some good understanding related to PDV and Input buffer and Descriptor portion.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is the physical structure of the data set in the same orientation as the report? Do you need to reshape the data sets? What method should you use to reshape the data–DATA steps,PROC TRANSPOSE,output data set from a procedure?

2199


how do you debug and test your sas programs? : Sas programming

1089


how sas deals with business intelligence? : Sas-bi

1017


What are the new features included in the new version of SAS Programming Language?

1168


What is your favorite all time computer book? Why?

2464


How does SAS handle missing values in: assignment statements, functions, a merge, an update, sort order, formats, PROCs?

1494


Do we follow ADAM in analysis dataset development?How? Usually which version? Why is it necessary?

2368


What are symget and symput? : sas-macro

1265


What is the use of function Proc summary?

1238


How we can call macros with in data step? : sas-macro

1079


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

1076


how does sas handle missing values in functions? : Sas programming

1151


Are you involved in writing the inferential analysis plan? Tables specfications?

2188


Explain the use of proc print and proc contents?

918


what is sas application server? : Sas-di

1025