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?

Answers were Sorted based on User's Feedback



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

Answer / 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

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

Answer / kishore kumar

Trailing @ is used to hold the record in input buffer to
execute another input statement on the same datalines.

Trailing @@ is used to hold the record in input buffer to
execute same input statement on same datalines intil eof
record

Is This Answer Correct ?    10 Yes 0 No

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

Answer / dupe bassey

If a variable doesnt have a single trailing @ with an input
statement, when sas encounters another input statement
after the first one,it would load a new record, this action
will result in some obeservations not been outputed and
missing data. To avoid this, a single trailing @ is used to
hold the record , so that when it encounters another input
statements within the datastep a new record is not loaded,
It bassically tells sas to use the data just placed in the
input buffer for the next input statement .
the single trailing @ is release when an input statement
without a trailing @ is encountered.



`input zz$ status @@' tells SAS to read two words at a
time from the input buffer to the pdv without discarding
the rest of the line.Without the trailing @@, SAS would
read the first two words from input buffer and ignore the
rest of the line. This would result in reading less records

Is This Answer Correct ?    4 Yes 0 No

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

Answer / guest

to reand next input statements at which same iteratioins of
a data step.
@n is column pointer control.

Is This Answer Correct ?    4 Yes 1 No

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

Answer / amarender

If the data is continuosly in data set SAS would read the
first words only from each line in the `datalines' block and
it will ignore the rest of the line. if we use Trailing
@@'it will read completly.and another type of trailing is
using single @ this is a line hold specifier.

Is This Answer Correct ?    3 Yes 0 No

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

Answer / ganesh naidu

@ is the column pointer, to instruct sas to go particular
line of raw data and it hold the line of raw data

When we have mulitiple lines of raw data per observation to
read , then use '@@' it hold line of raw data more
strongly.

Is This Answer Correct ?    1 Yes 0 No

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

Answer / radhiv kumar sure

WE CAN USE @ IN TWO CASES
1.HOLDING THE RECORD. FOR EXAMPLE IF THE DATA IS
HIERARCHIAL FILE.

2.FOR POINTER CONTROLLING. FROM WHICH POSITION VARIABLE AS
TO READ
@N LINE HOLD SPECIFIER

Is This Answer Correct ?    1 Yes 0 No

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

Answer / chiranjeevi.p

Trailing is a column pointer.These are those which works on
the variable level by default.it should appear with in
datastep and besides the variables in sas.these are two
types.there are
1)@
2)@@
@:It reads only the first line across the avaliable
variables data.
@@:The '@@' get the data entire data from the external
source by reading in to a single variable.

Is This Answer Correct ?    1 Yes 5 No

Post New Answer

More SAS Interview Questions

what are the considerations when picking a SAS/STAT procedure?

0 Answers   Accenture, Quintiles,


Name types of category in which SAS Informats are placed?

0 Answers  


how to add distinctly var variable values ex.. Data a; input var; datalines; 0 1 2 3 -1 -2 -3 ; run; adding all +ve value in one varibale n do the same for -ve too

5 Answers   CTS,


What is by-group processing?

0 Answers  


Explain data step in SAS

0 Answers  


What is the basic syntax style in SAS?

0 Answers  


Why is a STOP statement needed for the point=option on a SET statement?

2 Answers   Quintiles,


How do you put an elephant in the refrigerator?

6 Answers   Oracle,


What is the difference between %local and %global?

1 Answers  


if a program has some 1000 or more line and how to know whether the syntax of the particular code is correct without checking it manually

4 Answers   Accenture,


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

0 Answers  


What is the role of administrative users? : sas-grid-administration

0 Answers  


Categories