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 (851)
 Informatica interview questions  Informatica Interview Questions (1624)
 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
If reading an external file to produce an external file,
what is the shortcut to write that record without coding
every single variable on the record?
 Question Submitted By :: SAS
I also faced this Question!!     Answer Posted By  
 
Answer
# 1
DATA step copies records from the input file to the output
file without creating any SAS variables:

data _null_;
infile file-specification-1;
file file-specification-2;
input;
put _infile_;
run;
 
Is This Answer Correct ?    5 Yes 1 No
Durga G
 
Answer
# 2
by writing Put _all_; is the easy option to produce an
external file.
 
Is This Answer Correct ?    1 Yes 1 No
Ganesh
 
 
 
Answer
# 3
DATA step copies records from the input file to the output
file without creating any SAS variables:

data _null_;
/*To read the external taw data file*/
infile 'file-specification-1';
input var1 var2 $ var3;
/*To write the external raw data file*/
file 'file-specification-2';
put var1 var2 var3;
run;
 
Is This Answer Correct ?    0 Yes 0 No
Prakash Hullathi
 
Answer
# 4

PUT _ALL_;

Eg:

DATA
_NULL_;
SET MYDATA; --> is got from external input file
FILE OFILE<is having output file path>;

PUT _ALL_; --> is for writing values with variables

PUT (_ALL_) (+0); --> is for writing only values

RUN;


 
Is This Answer Correct ?    0 Yes 1 No
Jothi Sankar
 

 
 
 
Other SAS Interview Questions
 
  Question Asked @ Answers
 
What is difference between (a-z) and (a--z) Accenture 6
what are all the default values getting in PROC MEANS...???   2
What are the joins,types of joins and thier functions? SAS 7
What SAS statements would you code to read an external raw data file to a DATA step? NIIT 8
SAS using companies in chennai   1
What is the difference between an informat and a format? Name three informats or formats. Accenture 13
How to get second top scorer student from a class- table having different sections A, B, C & D? each section has same number of student. Tcs 3
how to delete the duplicates by using proc sql? Genpact 2
How could you generate test data with no input data?   6
if i having variables named a b c d e f ,how to find total of each variable ????give syntax...?? Accenture 6
create macros---you have 365 number of data and you need to merge it throw the macros,,,,,, data file1; input a @@; cards; 1 2 3 4 ; run; data file2; input a @@; cards; 5 6 7 8 ; run; data file3; input a @@; cards; 9 10 11 12 ; run;data file4; input a @@; cards; 13 14 15 16 ; run; wns 5
What is the purpose of the trailing @? The @@? How would you use them? Accenture 10
 
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