Search notes:

SAS data step: set

data abc;
  infile datalines;
  input
    col_num
    col_txt $50.
  ;

datalines;
1 foo
2 bar
3 baz
4 MoreThanEightCharacters
;


data mult_2;
  set abc;
  col_num = col_num * 2;
run;

proc print data=mult_2;
run;
Github repository about-SAS, path: /programming/data-step/set.sas

Limiting the observations

obs=n limits the read observations to n.
data orig;
  do i = 1 to 10;
     j = i*i;
     output;
  end;
run;

data only_4;
  set orig(obs=4);
run;

proc sql;
  select * from only_4;
quit;
Github repository about-SAS, path: /programming/data-step/set/obs/limit.sas

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