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...

What is the purpose of the trailing and How would you use them?

Answer Posted / sandhya

The trailing @ or more technically, line hold specifiers
are used to hold the pointer in the same record for
multiple iterations. The two tyoes of line hold specifiers
are single trailing(@) and double trailing(@@).

The single trailing hold the record until it encounters
either another input statement or end of the datastep.
They are used for the records such as

001F38 H
002 F 40 G

To read these values to the datastep

Data example;
input @10 type $ @;
if type='H' then
input @1 id 3. @4 gender $1. @5 age2.;
else if type='G' then
input @1 id3. @5 gender $1. @7 age 2.;
end;
cards;
001F38 H
002 F 40 G
;
run;

The double trailing holds the until the end of the record.

Data example2;
input id age @@;
cards;
001 23 002 43 003 65 004 32 005 54
;
run;

Is This Answer Correct ?    19 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can sas program be validated?

1037


Mention the difference between ceil and floor functions in sas?

1157


If you need the value of a variable rather than the variable itself what would you use to load the value to a macro variable? : sas-macro

1063


Approximately what date is represented by the SAS date value of 730?

1217


Which are the statements whose placement in the data step is critical?

1266


Tell me more about the parameters in macro? : sas-macro

1053


What is SAS? What are the functions does it performs?

1199


what is the difference between floor and ceil functions in sas? : Sas-administrator

1262


What is the difference between proportion and average?

3337


Explain by-group processing?

1004


Mention some common errors that are usually committed in sas programming.

1047


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

1123


What is the difference between using drop = data set option in data statement and set statement?

1166


What is the use of divide function?

1067


Mention what is the difference between nodupkey and nodup options?

1012