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

I use NOCUM/NOPERCENT option in the tables statement like this Proc freq data = deepak; tables x y /nocum nopercent; run; Here I get nopercent and nocum in the output only for variables x and y. How do i do it for all variables? Deepak

1 Answers  


Give e an example of..

0 Answers  


what are the differences between proc report and proc tabulate?

3 Answers  


what are the new features included in the new version of SAS i.e., SAS9.1.3?

5 Answers   College School Exams Tests, Wockhardt,


how to read the variables in sas? : Sas-administrator

0 Answers  


How does Mr.Lanka Srinivas teach SAS? Are his accomplishments real? What are the future prospects for SAS?

1 Answers   Student,


I am looking to buy a sas advance book. So any one can guide me that which one i should buy.

0 Answers  


what are the three main credit bureau names

1 Answers   Synchrony Financial,


If you?re not wanting any SAS output from a data step, how would you code the data statement to prevent SAS from producing a set?

1 Answers  


What is difference between (a-z) and (a--z)

8 Answers   Accenture,


what is ae onset date n what is RDS

0 Answers   Accenture,


libname deepak 'C:\SAS Files'; proc format; invalue convert 'A+' = 100 'A' = 96 'A-' = 92 'B+' = 88 'B' = 84 'B-' = 80 'C+' = 76 'C' = 72 'F' = 65; data deepak.grades; input ID $3. Grade convert.; *format Grade convert. ; datalines; 001 A- 002 B+ 003 F 004 C+ 005 A ; proc print data = deepak.grades; run; I get the following output Obs ID Grade 1 001 . 2 002 . 3 003 . 4 004 . 5 005 . I don’t understand why Grade shows up as a missing value. Everything seems fine, including ID $3. Now, in case I use ID : $3. Or use column input, I get the desired output. Kindly help Deepak

7 Answers  


Categories