Valid in: | DATA and PROC steps |
Supports: | All |
libname invty fedsvr server="d1234.us.company.com" port=2171 user=user1 pwd=pass1 dsn=db2dsn dsnuser=db2user dsnpwd=db2pwd; data invty.stock; set addinv; modify invty.stock(dbkey=partno) key=dbkey; INSTOCK=instock+nwstock; RECDATE=today(); if _iorc_=0 then replace; run;
options sastrace=',,,d' sastraceloc=saslog nostsuffix; proc sql; create table work.barbkey as select keyvalues.empid, employees.hiredate, employees.jobcode from mydblib.employees(dbkey=(empid jobcode)) inner join work.keyvalues on employees.empid = keyvalues.empid; quit;