ALLInterview.com :: Home Page            
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
Google
   
 
Categories >> Software >> Data Warehouse >> SAS
 
 


 

 
 Teradata interview questions  Teradata Interview Questions (183)
 Business Objects interview questions  Business Objects Interview Questions (756)
 Cognos interview questions  Cognos Interview Questions (848)
 Informatica interview questions  Informatica Interview Questions (1623)
 Crystal Enterprise Suite interview questions  Crystal Enterprise Suite Interview Questions (29)
 Actuate interview questions  Actuate Interview Questions (35)
 Ab Initio interview questions  Ab Initio Interview Questions (172)
 Data Stage interview questions  Data Stage Interview Questions (564)
 SAS interview questions  SAS Interview Questions (556)
 Micro Strategy interview questions  Micro Strategy Interview Questions (36)
 ETL interview questions  ETL Interview Questions (195)
 Data Warehouse General interview questions  Data Warehouse General Interview Questions (216)
Question
What is the purpose of the trailing @? The @@? How would you
use them?
 Question Submitted By :: SAS
I also faced this Question!!     Answer Posted By  
 
Answer
# 1
@@ is used when we have multiple observations per line of
raw data. It is used at the end of the INPUT statement. It
tells SAS to hold that line of data and continue to read
observations until it either runs out of data or reaches an
INPUT statement that does not end with a double trailing @.
When we use @ only without specifying n, SAS will hold that
line of data until it reaches either the end of the DATA
step or an INPUT statement that does not end with a trailing @.

Both are line-hold specifiers; the difference is how long
they hold a line of data for input. The trailing @ holds a
line of data for subsequent INPUT statements, but releases
that line of data when SAS returns to the top of the DATA
step to begin building the next observation. The double
trailing @ holds a line of data for subsequent INPUT
statements even when SAS starts building a new observation.
In both cases, the line of data is released if SAS reaches a
subsequent INPUT statement that does not contain a line-hold
specifier.
 
Is This Answer Correct ?    35 Yes 1 No
Imran Syed
 
Answer
# 2
both @AND @@ TAILARING used for the hold the
datalines,difference is how long they hold the data in the
complilation process,@ hold the the data till the end of
the line,but it release the dataline when it reach the end
of the line, but @@ holds the datalines untill the end of
the process
 
Is This Answer Correct ?    20 Yes 8 No
Giri
 
 
 
Answer
# 3
both @AND @@ TAILARING used for the hold the
datalines,difference is how long they hold the data in the
complilation process,@ hold the the data till the end of
the line,but it release the dataline when it reach the end
of the line, but @@ holds the datalines untill the end of
the process
 
Is This Answer Correct ?    7 Yes 1 No
Srinu
 
Answer
# 4
@-is used to reading part of a rawdata file we using traling @
@@-is used to reading multiple observations of rawdata
 
Is This Answer Correct ?    5 Yes 1 No
No Name Is Require
 
Answer
# 5
The trailing at sign (@) holds the input record for the
execution of the next INPUT statement.

The double trailing at sign (@@) holds the input record for
the execution of the next INPUT statement, even across
iterations of the DATA step.
 
Is This Answer Correct ?    2 Yes 1 No
Sunil
 
Answer
# 6
@:Hold an input record for the execution of the next input statement with in the same iteration of the data step.
use:The trailing @ must be the last item in the INPUT statement.
@@:Holds an input record for the execution of the next input statement across iteration of the data step.
Uses:The double trailing @ must be the last item in the INPUT statement.
 
Is This Answer Correct ?    1 Yes 0 No
Raj
 
Answer
# 7
@it holds the record at the end of the input statement or
when the next input will come it will read the data. and
@ is also pointer controll .if we want to read particular
character in a data set then we can use this @

@@ it is used for reading single line multiple
observations.
 
Is This Answer Correct ?    3 Yes 3 No
Sumalatha.ch
 
Answer
# 8
@ is a column pointer holds the input record for the
execution of the next input statement

@@ if we have two relevant obs in same line we need to hold
that too we need double trailing either after taking first
value sas move to another line leaving the first.
 
Is This Answer Correct ?    0 Yes 0 No
Vikas Pherwani
 
Answer
# 9
These are those which works on the variable level by
default.It should appear and besides the variables in
sas.The columnpointers are
1)@
2)@@
@:the '@'is a column pointer which commands SAS to hold the
line strongly.The '@' is if it used,it is trailing of '@'
pointer.It reads only the first line across the available
variables data.

@@:It is used for the entire data from the external source
or internal by reading into a single variable.
 
Is This Answer Correct ?    1 Yes 4 No
Chiranjeevi
 
Answer
# 10
@ is the pointer input that will hold the point at a
specific point variables inthe data

@@ is the on that may be useful to read the singleline of
raw data into multiple observations of the sas data set.

syn

data santhi;
infile path;
input var 1 2 3 4 @@;
run;
 
Is This Answer Correct ?    3 Yes 10 No
Santhi Swaroop
 

 
 
 
Other SAS Interview Questions
 
  Question Asked @ Answers
 
what is the difference between SET and MERGE? CitiGroup 17
what is pdv? how it is related to input buffer in sas? Satyam 5
Which is the best training Institute for SAS Business Intelligence course?   5
how can you sort the dataset having millions of OBS(instead of sort procedure?   4
What are the main differences between sas versions 8.2, 9.0, 9.1?   4
data voter; input Age Party : $1. (Ques1-Ques4)($1. + 1); datalines; 23 D 1 1 2 2 45 R 5 5 4 1 67 D 2 4 3 3 39 R 4 4 4 4 19 D 2 1 2 1 75 D 3 3 2 3 57 R 4 3 4 4 ; Idont understand what the (Ques1-Ques4)($1. + 1) means. I have seen (Ques1-Ques4)(4*$1.), but what is (Ques1-Ques4)($1. + 1)? Appreciate all help Thanks   3
what are the different ways of merging two datasets.name atleast 4.   2
How would you code a merge that will keep only the observations that have matches from both sets?   5
what is SAS/Graph? CitiGroup 1
Do you need to combine data sets? How should you combine data sets– MERGE or SET statements in DATA steps,PROC APPEND,PROC SQL?   3
How to Rename Library?   3
Please write codes to merge two datasets and keep every record in the first dataset.   1
 
For more SAS Interview Questions Click Here 
 
 
 
 
 


   
Copyright Policy  |  Terms of Service  |  Articles  |  Site Map  |  RSS Site Map  |  Contact Us
   
Copyright © 2013  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  KalAajKal.com