This section shows the SAS statements that are used to create the view descriptors
for the AcctDBD
database that is used in the examples in this document. The AcctDBD database is described
in
IMS Essentials. The view descriptors are presented here in alphabetical
order for easy reference.
You can create all the view descriptors used in the document by using PROC ACCESS
statements. These view descriptors are based on the MyLib.Account
access descriptor shown earlier in this section.
proc access dbms=ims ad=mylib.account;
create vlib.account.view psb=accupsb;
select soc_sec_number
customer_name
city
state
zip_code;
list view;
create vlib.cdbtdate.view psb=accupsb;
select check_account_number
check_date;
list view;
create vlib.chckacct.view psb=accupsb;
select soc_sec_number
customer_name
check_account_number
check_date
check_balance;
list view;
create vlib.chkcrd.view psb=accupsb pcb=2;
select customer_record
checking_account_record
checking_credit_record;
reset 17 28;
list view;
create vlib.chkdeb.view psb=accupsb pcb=3;
select customer_record
checking_account_record
checking_debit_record;
reset 17 22;
list view;
create vlib.chktrans.view psb=accupsb;
select customer_name
check_account_number
check_date
check_balance;
list view;
create vlib.credits.view psb=accupsb;
select soc_sec_number
check_account_number
check_credit_amount
check_credit_date
check_credit_time
check_credit_desc;
list view;
create vlib.custacct.view psb=accupsb;
select soc_sec_number
customer_name
check_account number;
list view;
create vlib.custinfo.view psb=accupsb;
select 2 3 5 6 7 8 9 10 11 12;
list view;
create vlib.custphon.view psb=accupsb;
select soc_sec_number
customer_name
home_phone
office_phone;
list view;
create vlib.savebal.view psb=accupsb;
select soc_sec_number
customer_name
city
32 36;
list view;
create vlib.ssname.view psb=accupsb;
select soc_sec_number
customer_name;
list view;
create vlib.trans.view psb=accupsb;
select soc_sec_number
check_account_number
check_debit_amount;
list view;
run;