:: 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                      
Categories >> Software >> Data Warehouse >> SAS


 Teradata interview questions  Teradata Interview Questions (183)
 Business Objects interview questions  Business Objects Interview Questions (751)
 Cognos interview questions  Cognos Interview Questions (842)
 Informatica interview questions  Informatica Interview Questions (1622)
 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 (168)
 Data Stage interview questions  Data Stage Interview Questions (563)
 SAS interview questions  SAS Interview Questions (550)
 Micro Strategy interview questions  Micro Strategy Interview Questions (35)
 ETL interview questions  ETL Interview Questions (195)
 Data Warehouse General interview questions  Data Warehouse General Interview Questions (215)
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  
# 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;
put _infile_;
Is This Answer Correct ?    5 Yes 1 No
Durga G
# 2
by writing Put _all_; is the easy option to produce an
external file.
Is This Answer Correct ?    1 Yes 1 No
# 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;
Is This Answer Correct ?    0 Yes 0 No
Prakash Hullathi
# 4



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


Is This Answer Correct ?    0 Yes 1 No
Jothi Sankar

Other SAS Interview Questions
  Question Asked @ Answers
how do we get duplicate observations in a separate dataset? CitiGroup 6
Code a PROC MEANS that shows both summed and averaged output of the data.   5
sas macros   12
I have 50 variables in one data set, In reports i want to generate every 10 variables in one page how we will write code in proc report.   4
What is the purpose of the trailing @? The @@? How would you use them? Accenture 10
how to write code for left outer join in SAs using datastep? CitiGroup 8
hi i am nipun can anybody tell me that if a clinical sas programmer write the code and after successfull execution where do they store it. how they submit tables to TL how work is assigned to programmers either both code, log, output to be submitted. can any one tell me the process HSBC 2
What are the analysis datasets created, and what are the new variables created in CLINICAL SAS Sciformix 1
You have a data set of 100 observations,how can you restrict the output so that the output has only data from row no. 10 to row no. 20   8
How do you write a test plan? Oracle 1
how to delete the duplicates by using proc sql? Genpact 2
how do you read binary data in sas? Satyam 3
For more SAS Interview Questions Click Here 

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