ALLInterview.com :: Home Page KalAajKal.com
 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                      
info       Did you received any Funny E-Mails from your Friends and like to share with rest of our friends? Yeah!! you can post that stuff   HERE
Google
 
Categories  >>  Software  >>  Data Warehouse  >>  SAS
 
 


 

 
 Teradata interview questions  Teradata Interview Questions
 Business Objects interview questions  Business Objects Interview Questions
 Cognos interview questions  Cognos Interview Questions
 Informatica interview questions  Informatica Interview Questions
 Crystal Enterprise Suite interview questions  Crystal Enterprise Suite Interview Questions
 Actuate interview questions  Actuate Interview Questions
 Ab Initio interview questions  Ab Initio Interview Questions
 Data Stage interview questions  Data Stage Interview Questions
 SAS interview questions  SAS Interview Questions
 Micro Strategy interview questions  Micro Strategy Interview Questions
 ETL interview questions  ETL Interview Questions
 Data Warehouse General interview questions  Data Warehouse General Interview Questions
Question
how can u import .csv file in to SAS?tell Syntax?
 Question Submitted By :: Akshara
I also faced this Question!!     Rank Answer Posted By  
 
  Re: how can u import .csv file in to SAS?tell Syntax?
Answer
# 1
To create csv file,we have to open notepad.then ,declaring 
the variables.then save the file.like enr.csv
SYNTAX: proc import datafile='external file' 
out=<dataset name> dbms=csv replace;
getnames=yes;
proc print data=<dataset name>
run;
eg:proc import datafile='E:\enr.csv'
out=sai                     
dbms=csv    replace;
getnames=yes;
proc print data=sai;
run;
 
Is This Answer Correct ?    2 Yes 1 No
Enr
 
  Re: how can u import .csv file in to SAS?tell Syntax?
Answer
# 2
by using proc import or through wizard select import data 
from file menu and infile statement.


proc import datafile='c:\my .csv' out =gan;
run;
 
Is This Answer Correct ?    1 Yes 1 No
Ganesh
 
 
 
  Re: how can u import .csv file in to SAS?tell Syntax?
Answer
# 3
You can also use an 
ods html file ='c:\user\new.xls';
proc print data=new;
run;
ods html close;

something along those lines
 
Is This Answer Correct ?    0 Yes 1 No
Dupe Bassey
 
  Re: how can u import .csv file in to SAS?tell Syntax?
Answer
# 4
data DatasetName(drop = If any);
 infile 'Path\CSVFileName.csv'  delimiter = ',' ;
informat Var1 $2.;
informat Var2 anydtdte21.;

 format Var1 $2.;
 format Var2 anydtdte21.;

Input
  Var1 $
  Var2 $;

run;
 
Is This Answer Correct ?    0 Yes 0 No
Shruthi
 
  Re: how can u import .csv file in to SAS?tell Syntax?
Answer
# 5
retreving the data we can use import&infile also.
import:
proc import datafile='external file' 
out=<dataset name> dbms=csv replace;
getnames=yes;
proc print data=<dataset name>
run;

infile:
data code;
infile'C:\Documents and Settings\admin\Desktop\chiru.csv';
input<variable list>;
run;
 
Is This Answer Correct ?    1 Yes 0 No
Chiranjeevi
 

 
 
 
Other SAS Interview Questions
 
  Question Asked @ Answers
 
How would you code a merge that will keep only the observations that have matches from both sets. Accenture5
wt is a-z and a--z? Accenture1
my problem is to export my report to xsl.i can do that.but the problem is my report has 3 headings first heading should be printed with the merging of (1-5)cells and heading 2 should be of merge(2-4)cells?how to do this condition? Oracle1
what is portability of sas programmes? Capital-One1
how do we mail reports from SAS environment to our team leader Wockhardt4
Approximately what date is represented by SAS date value of 730  5
What is the one statement to set the criteria of data that can be coded in any step?  2
CHOOSE ANY ONE OF THE PROCEDURE FOLLOWING TO GENERATE THE REPORTS? HOW CAN YOU SAY IT IS BETTER THAN THE OTHER? AND DEFERENCIATE THESE TWO ? 1). REPORT PROCEDURE 2). TABULATE PROCEDURE CybAge1
How do you generate random samples?  4
in which companies SAS openings are there? List of companies using SAS technology.  1
how do we get duplicate observations in a separate dataset?  5
How do you add a number to a macro variable?  1
what is picture format? give any one example? Parexel2
What is the one statement to set the criteria of data that can be coded in any step? Accenture3
How can you put a "trace" in your program?  2
what is pdv? how it is related to input buffer in sas? Satyam4
How the date 04oct1994 is stored in SAS,not only give the answer explain in brief?  3
Code a PROC MEANS that shows both summed and averaged output of the data.  1
Describe how you would pass data to macro.  3
%STPbegin;%STPEND; ERROR: No logical assign for filename _WEBOUT. WARNING: No body file. HTML output will not be created. unable to fix it.plz help  2
 
For more SAS Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com