Search notes:

SAS: Write the content of a data set to a file

/* Create the dataset */
data tq84_ds;
  length num   8.
         txt $20.
  ;
  input  num
         txt
  ;
datalines;
1 one
20 twenty
8 eight
99 ninety-nine
35 thirty-five
run;

/* Write the dataset to a file: */
data _null_;
  file 'p:\ath\to\a\directory\ds.txt';
  set tq84_ds;
  put num txt;
run;
Github repository about-SAS, path: /programming/data-sets/write-file.sas

See also

data sets

Index

Fatal error: Uncaught PDOException: SQLSTATE[HY000]: General error: 8 attempt to write a readonly database in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php:78 Stack trace: #0 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(78): PDOStatement->execute(Array) #1 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(30): insert_webrequest_('/notes/Companie...', 1759408074, '216.73.216.42', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/Companies-Products/SAS/programming/data-sets/write-file(59): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78