Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 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