What statement do you code to tell SAS that it is to write
to an external file?

Answers were Sorted based on User's Feedback



What statement do you code to tell SAS that it is to write to an external file?..

Answer / jothi sankar

_NULL_ statemnet.


Eg:

DATA
_NULL_;
SET MYDATA;
FILE '<FILE-LOCATION>';
PUT var1 var2 var3 ... varn;
RUN;

Is This Answer Correct ?    12 Yes 1 No

What statement do you code to tell SAS that it is to write to an external file?..

Answer / vemula

file statement

Is This Answer Correct ?    11 Yes 0 No

What statement do you code to tell SAS that it is to write to an external file?..

Answer / name is no need

i think sankar is correct

Is This Answer Correct ?    2 Yes 0 No

What statement do you code to tell SAS that it is to write to an external file?..

Answer / sankar

using export procedure

syntax

in txt file: proc export data=datasetname dbms=dlm
outfile='path';
delimiter='specific delimiter';
run;
in excelfile: proc export data=datasetname dbms=excel200
outfile='path'
sheet='sheetname';
run;

Is This Answer Correct ?    3 Yes 2 No

What statement do you code to tell SAS that it is to write to an external file?..

Answer / kranthi arabelly

Folks ...plz see bellow diff instream and External file

1. Data from an external file

DATA statement;
INFILE statement;
INPUT statement;
other SAS statements used in the DATA step
Run;

2. Data in job stream

DATA statement;
INPUT Statement;
other SAS Statements used on the DATA step
CARDS Statement;
data lines
;

Is This Answer Correct ?    2 Yes 5 No

Post New Answer

More SAS Interview Questions

wat is sas? is a package or programming language?

4 Answers  


firstobs and obs are working only option wise,but we are using infile statement with firstobs and obs in a statement wise? so firstobs,obs working at options and statemnts or not?

1 Answers  


what is data integration? : Sas-di

0 Answers  


/* To determine the maximum and minimum of V1 */ data before3; input v1 v2 v3; cards; 3 2 1 4 6 5 2 1 3 6 5 4 1 3 2 5 4 6 ; run;

5 Answers  


Describe crosslist option in tables statement?

0 Answers  






What is the difference between an informat and a format. Name three informats or formats.

6 Answers  


explain about data integrator metadata reports? : Sas-di

0 Answers  


One way of creating a new variable in Macros is by % Let....What is the other way..?

5 Answers   TCS,


how many display types available in sas bi dashboard? : Sas-bi

0 Answers  


which domain is better in sas? clinical trails or banking

3 Answers  


What are Dashboard reports?And significance of these in analysis?

1 Answers  


Does SAS ‘Translate’ (compile) or does it ‘Interpret’? Explain.

4 Answers   Accenture,


Categories