What statement do you code to write the record to the file?

Answers were Sorted based on User's Feedback



What statement do you code to write the record to the file?..

Answer / g.jyotshna

file 'path';
put _all_;
run;
this is for all variables to write into the file.

Is This Answer Correct ?    5 Yes 0 No

What statement do you code to write the record to the file?..

Answer / jothi sankar

FILE '<location-of-file-to-be-written>';

and

PUT var1 var2 var3 .... varn;

Is This Answer Correct ?    0 Yes 0 No

What statement do you code to write the record to the file?..

Answer / bhargavi

BY using data _null_

Is This Answer Correct ?    0 Yes 0 No

What statement do you code to write the record to the file?..

Answer / cindy

data _Null_;
set ;
file "c:\location of file to be written.file format eg
(txt)";
put _all_; or var1, var2;

Is This Answer Correct ?    0 Yes 0 No

What statement do you code to write the record to the file?..

Answer / ganesh k

using FILENAME statement

Is This Answer Correct ?    0 Yes 1 No

Post New Answer

More SAS Interview Questions

what is SAS ACCESS AND SAS CONNECT ? Give an example and data statements used.

1 Answers   TCS,


What is the purpose of _error_?

1 Answers   Quintiles,


what is the difference between infile and input? : Sas-administrator

0 Answers  


How to sort in descending order?

0 Answers  


How long can a macro variable be? A token? : sas-macro

0 Answers  






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;

6 Answers   WNS,


what is the use of proc sql?

5 Answers   CitiGroup,


Describe the ways in which you can create macro variables?

0 Answers  


what are 5 ways to perform a table lookup in sas? : Sas-administrator

0 Answers  


in the flow of data step processing, what is the first action in a typical data step? : Sas programming

0 Answers  


what is the basic structure sas administrator? : Sas-administrator

0 Answers  


what is syntax of proc merge ?

7 Answers   TCS,


Categories