This is a "Toolkit" of useful and frequently-used functions that VAX BASIC programmers may need. These functions can be compiled and linked into any VAX BASIC program (or any other VAX language, as long as you take into account the subtleties between the languages). List of functions in this directory: Numeric Conversion Functions: NUMERIC.FUN Returns -1 if passed string contains only digits DEC_TO_OCT.FUN Decimal-to-Octal conversion OCT_TO_DEC.FUN Octal-to-Decimal conversion RJL0.FUN Right-justifies a numeric value with leading zeros RJLB.FUN Right-justifies a numeric value with leading spaces Process Info Functions: GET_UIC.FUN Returns the longword UIC of the process GET_USERNAME.FUN Returns the username of the process HELD_IDENTIFIERS.FUN Returns a list of identifiers held by the process's UIC VERIFY_UIC_GROUP.FUN Returns 0 if process UIC group not equal to passed group User Authorization File Functions: READ_UAF.FUN Reads the SYSUAF data file for a specific username READ_UAF_BY_UIC.FUN Reads the SYSUAF data file for a specific UIC RMS/Directory Functions: CURRENT_DIRECTORY.FUN Returns your current default directory DEFAULT_FILESPEC.FUN Returns a default filespec for a string F$PARSE.FUN Returns the expanded filespec for a string FABDEF.INC Used by F$PARSE.FUN and VALID_FILE.FUN NAMDEF.INC Used by F$PARSE.FUN and VALID_FILE.FUN PSLDEF.MAR Used by DEFAULT_FILESPEC.FUN VALID_FILE.FUN Returns -1 if the passed filespec exists Date Functions: ADD_DATES.FUN Adds/Subtracts a number of days from a given date DAYS_DIFF.FUN Returns number of days different between 2 dates MONDAYS_DATE_AS_MMDDYY.FUN Returns the desired Monday's date as a 6-digit string TODAYS_DATE_AS_MMDDYY.FUN Returns today's date as a 6-digit string WEEKDAY.FUN Returns the weekday of a passed MMDDYY date Queue Functions: DELETE_JOB.FUN Deletes a specific batch queue job GETFID.MAR Used by PRINTABLE.FUN JBCDEF.MAR Used by most of these Queue Functions PRINTABLE.FUN Returns 1 if a passed filespec is "Printable" PRINT_FILE.FUN Submits a filespec into a VMS print queue QUIDEF.MAR Used by VALID_QUEUE.FUN SJCDEF.MAR Used by PRINT_FILE.FUN, DELETE_JOB.FUN, SUBMIT_FILE.FUN SUBMIT_FILE.FUN Submits a filespec into a VMS batch queue VALID_QUEUE.FUN Returns -1 if passed string is a valid queue name Miscellaneous Functions: AST_ROUTINE.FUN Used by CTRL_C_Y_TRAP.FUN CTRL_C_Y_TRAP.FUN Allows trapping of CTRL/C and CTRL/Y keys LNMDEF.MAR Used by TRNLNM.FUN and DEFAULT_FILESPEC.FUN MAIL.FUN Sends a MAIL message via the VMS MAIL utility OPCDEF.MAR Used by SEND_OPER_MSG.FUN READ_WITH_TERMINATOR.FUN Returns data input; may be terminated by TAB or timeout SEND_OPER_MSG.FUN Sends a REQUEST/REPLY message to the central operator SYSTEM_MESSAGE.FUN Returns the English text for a VMS longword error value TITLE.FUN Displays reverse-video double-height double-width title TRNLNM.FUN Translates a logical name WRITE_ATTN_AST.FUN Used by SEND_OPER_MSG.FUN