View Descriptors for the CA-Datacom/DB Tables

Vlib.AllEmp View Descriptor

The Vlib.AllEmp view descriptor was created as follows:
proc access dbms=Datacom ad=mylib.employee;
   create vlib.allemp.view;
   select all; 
   list view; 
run;

Vlib.AllOrdr View Descriptor

The Vlib.AllOrdr view descriptor was created as follows:
proc access dbms=Datacom ad=mylib.orders;
   create vlib.allordr.view;
   select all;
   list view;
run;

Vlib.CusOrdr View Descriptor

The Vlib.CusOrdr view descriptor contains no selection criteria.
proc access dbms=Datacom ad=mylib.orders; 
   create vlib.cusordr.view;
   select stocknum shipto;
   list view;
run;

Vlib.CusPhon View Descriptor

The Vlib.CusPhon view descriptor was created as follows:
proc access dbms=Datacom ad=mylib.custs;
   create vlib.cusphon.view;
   select customer telephone name;
   list view;
run;

Vlib.CustAdd View Descriptor

The Vlib.CustAdd view descriptor was created as follows:
proc access dbms=Datacom ad=mylib.custs; 
   create vlib.custadd.view; 
   select state zipcode country name city;
   list view;
run;

Vlib.DcmEmpsView Descriptor

The Vlib.DcmEmps view descriptor was created as follows:
proc access dbms=Datacom ad=mylib.employee;
   create vlib.dcmemps.view;
   select empid birthdate lastname firstname middlename;
   list view;
run;

Vlib.EmpInfo View Descriptor

The Vlib.EmpInfo view descriptor was created as follows:
proc access dbms=Datacom ad=mylib.employee;
   create vlib.empinfo.view;
   select empid dept lastname;
   list view;
run;

Vlib.Emps View Descriptor

The Vlib.Emps view descriptor was created as follows:
proc access dbms=Datacom ad=mylib.employee;
   create vlib.emps.view;
   select empid jobcode birthdate lastname;
   subset where jobcode = 602;
   subset sort lastname;
   list view;
run;

Vlib.ForInv View Descriptor

The Vlib.ForInv view descriptor was created as follows:
proc access dbms=Datacom ad=mylib.invoice;
   create vlib.forinv.view;
   select all;
   subset where country != 'USA';
   list view;
run;

Vlib.Inv View Descriptor

The Vlib.Inv view descriptor was created as follows:
proc access dbms=Datacom ad=mylib.invoice;
   create vlib.inv.view;
   select invoicenum amtbilled country billedby paidon;
   subset sort billedby;
   list view; 
run;

VLIB.UsaCust View Descriptor

The VLIB.UsaCust view descriptor was created as follows:
proc access dbms=Datacom ad=mylib.custs;
   create vlib.usacust.view;
   select customer state zipcode name firstorderdate;
   list view; 
   extend view; 
   subset where customer eq 1#; 
   subset sort firstorderdate; 
   list view; 
   list all;
run;

Vlib.UsaInv View Descriptor

The Vlib.UsaInv view descriptor was created as follows:
proc access dbms=Datacom ad=mylib.invoice;
   create vlib.usainv.view;
   select all;
   subset where country = 'USA';
   list view;
run;

Vlib.UsaOrdr View Descriptor

The Vlib.UsaOrdr view descriptor was created as follows:
proc access dbms=Datacom ad=mylib.orders;
   create vlib.usaordr.view;
   select ordernum stocknum length fabriccharges shipto;
   subset sort shipto;
   subset where shipto = 1#;
   list view;
run;