The following command creates a database view called ACCTFIL, using the default structure in my.str, for the ACCTFIL file in the VSAM datastore.
Windows:
dbfhview -create -struct:my.str -name:ACCTFIL -file:sql://MYSRV/VSAM/ACCTFIL -configfile:C:\dbconfig\mfdbfh.cfg
UNIX:
dbfhview -create -struct:my.str -name:ACCTFIL -file:sql://MYSRV/VSAM/ACCTFIL -configfile:/home/usera/dbconfig/mfdbfh.cfg
dbfhview -create -struct:my.str -id:2 -name:ACCTFIL -file:sql://MYSRV/VSAM/ACCTFIL
dbfhview -create -struct:my.str -name:ACCTFIL -file:sql://MYSRV/VSAM/ACCTFIL -outfile:my.sql
The following command deletes the ACCTFIL view that is associated with the ACCTFIL file in the VSAM datastore.
dbfhview -delete -name:ACCTFIL -file:sql://MYSRV/VSAM/ACCTFIL
The following command lists the structures that are defined in the my.str structure file. The index numbers displayed are used with the -id option when creating a view using a specific structure.
dbfhview -list -struct:my.str
The following command lists the installed views associated with the ACCTFIL file in the VSAM datastore.
dbfhview -list -file:sql://MYSRV/VSAM/ACCTFIL