tasks a-s
This commit is contained in:
parent
47bf37c096
commit
b83f433714
12433 changed files with 156208 additions and 123 deletions
13
Task/Pointers-and-references/SAS/pointers-and-references.sas
Normal file
13
Task/Pointers-and-references/SAS/pointers-and-references.sas
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
/* Using ADDR to get memory address, and PEEKC / POKE. There is also PEEK for numeric values. */
|
||||
data _null_;
|
||||
length a b c $4;
|
||||
adr_a=addr(a);
|
||||
adr_b=addr(b);
|
||||
adr_c=addr(c);
|
||||
a="ABCD";
|
||||
b="EFGH";
|
||||
c="IJKL";
|
||||
b=peekc(adr_a,1);
|
||||
call poke(b,adr_c,1);
|
||||
put a b c;
|
||||
run;
|
||||
Loading…
Add table
Add a link
Reference in a new issue