This is brilliant. Have you done any others? Is the source code
available?
Source kits are at https://sourceforge.net/projects/vms-ports/files/
Of the few others I've done, the extension I find most handy is vms$cvtime()
---------------------------------------------------------------
$ sqlite3/help
Information available:
Building Extensions SQLITE_library SQLITE_shell
Topic? extensions
EXTENSIONS
Extensions are shareable image files that are dynamically loaded by the
application to provide additional functions for SQL statements. To load
an extension from the shell program use the .load command (.exe file
type must be explicitly specified). To load the extension from an
application, see the documentation for the sqlite3_load_extension() function.
Additional information available:
VMS$cvtime VMS$date_format VMS$entries VMS$queues zipfile
xlsxvtab
EXTENSIONS Subtopic? vms*
EXTENSIONS
VMS$cvtime
Function to mimic the OpenVMS DCL F$CVTIME() lexical function. The
function is implemented using OpenVMS functions SYS$ASCTIM(), SYS$BINTIM(),
SYS$NUMTIM(), LIB$CONVERT_DATE_STRING, and LIB$FORMAT_DATE_TIME().
Extension filename: vms_time.exe
Format:
VMS%cvtime(time,[output_format[,output_field]])
Additional information available:
time output_format output_field
EXTENSIONS
VMS$date_format
Function to modify how VMS$cvtime parses and formats date strings by
creating a context to use with the LIB$CONVERT_DATE_STRING() and
LIB$FORMAT_DATE_TIME() functions called by VMS$cvtim().
Extension filename: vms_time.exe
Format:
VMS%date_format(component,...])
Additional information available:
component ... eponymous_virtual_table example
EXTENSIONS
VMS$entries
Virtual table function to present an OpenVMS queue's entries as table
data. Note that the same extension file provides both this function and
VMS$queues().
Extension filename: vms_getqui.exe
Format:
CREATE VIRTUAL TABLE table_name USING VMS$entries(queue,[item,...])
Result columns:
entries(jobnum INTEGER KEY, username TEXT, file TEXT, flags TEXT,
status TEXT, jobname TEXT, P1 TEXT [, item-type[,...]]);
Additional information available:
queue_name items data_conversion
EXTENSIONS
VMS$queues
Virtual table function to present OpenVMS queue manager queues as table
data. Note that the same extension file provides both this function and
VMS$entries().
Extension filename: vms_getqui.exe
Format:
CREATE VIRTUAL TABLE table-name USING VMS$queues([item,...])
Result columns:
queues(name TEXT PRIMARY KEY, type TEXT, state TEXT,
node TEXT [, item-type[,...]]) WITHOUT ROWID;
Additional information available:
items item-suffixes