Search notes:

SAS statements: format

data tq84_formatted;

/* TODO: is this REALLY the way to specify the
   ordering of attributes in the created
   dataset? */

   length r 8. dt 8. tm 8.;

   drop i;

   format dt date9.;
   format tm time.;

   do i = 1 to 10;
      r  = rand('unif') * 10000;
      dt = r;
      tm = r;

      output;
   end;
run;
Github repository about-SAS, path: /programming/statements/format/assoc-format-with-var.sas

See also

informats and formats
SAS statements

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...', 1759338229, '216.73.216.88', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/Companies-Products/SAS/programming/statements/format/index(61): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78