What statement do you code to write the record to the file?
Answers were Sorted based on User's Feedback
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 |
Answer / jothi sankar
FILE '<location-of-file-to-be-written>';
and
PUT var1 var2 var3 .... varn;
Is This Answer Correct ? | 0 Yes | 0 No |
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 |
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
Give e an example of..
what are the differences between proc report and proc tabulate?
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
How does Mr.Lanka Srinivas teach SAS? Are his accomplishments real? What are the future prospects for SAS?
I am looking to buy a sas advance book. So any one can guide me that which one i should buy.
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?
What is difference between (a-z) and (a--z)
what is ae onset date n what is RDS
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