proc access dbms=Datacom; create mylib.custs.access; user=demo; table=customers; assign = yes; drop contact; list all; extend all; rename customer = custnum telephone = phone streetaddress = street; format firstorderdate = date7.; informat firstorderdate = date7.; content firstorderdate = yymmdd6.; list all; create vlib.usacust.view; select customer state zipcode name firstorderdate; list view; extend view; subset where customer eq 1#; subset sort firstorderdate; list view; create vlib.custadd.view; select state zipcode country name city; list view; list all; run;
proc access dbms=Datacom;
create mylib.custs.access;
user=demo;
table=customers;
assign = yes;
drop contact;
list all;
extend all;
rename customer = custnum telephone = phone streetaddress
= street;
format firstorderdate = date7.;
informat firstorderdate = date7.;
content firstorderdate = yymmdd6.;
yymmdd
).
Specify the CA-Datacom/DB field name or its positional equivalent from the LIST statement on the left side
of the
equal sign (=) and the date format on the right. Because the ASSIGN=YES statement
is specified, any view descriptors that are created from this access descriptor automatically
use this date format for the FIRSTORD column.
list all;
create vlib.usacust.view;
select customer state zipcode name firstorderdate;
list view;
extend view;
subset where customer eq 1#;
subset sort firstorderdate;
list view;
create vlib.custadd.view;
select state zipcode country name city;
list view;
list all;
run;