VMS / OpenVMS Message Compiler for Linux and Windows


Compiles VMS / OpenVMS Message File_name into an indexed memory file on Linux and Windows. VX/MSG also generated 3GL message constants for C, C++, BASIC, Fortran, COBOL, PASCAL.

The VMS / OpenVMS SYS$ API's functionality identically as VMS / OpenVMS SYS$GETMSG, SYS$FAO, SYS$FAOL

.

Learn More

Generating Fortran Constants

msg -f < messages.msg > constants.f VX/MSG VX/MSG - VMS Message Compiler for Linux (v8.5.2) Copyright (C) 1987-2016 Sector7 USA Llc.
All Rights Reserved

Language Selected: Fortran

Generating C Constants

msg -c < messages.msg > constants.c
VX/MSG - VMS Message Compiler for Linux (v8.5.2)
Copyright (C) 1987-2016 Sector7 USA Llc.
All Rights Reserved

Language Selected: C/C++

generating C headers

msg -h < messages.msg > constants.h
VX/MSG - VMS Message Compiler for Linux (v8.5.2)
Copyright (C) 1987-2011 Sector7 USA Inc.
All Rights Reserved6Language Selected: C/C++ Headers

Examples

Populates message database or generate message constant sources in C, Fortran, and BASIC

$ show log sys$message "SYS$MESSAGE" = "SYS$SYSROOT:[message]"

The messages can be viewed quickly using VX/DCL, though the records contain some binary data, using:

$ type/page sys$message:messages.sys

Where messages.sys is an indexed file with data (.dat) and indices (.idx) in separate files.
Depending on your config options you may see this as either upper or lower case, and one or two files.
The actual files are shown below with the default symbolic links to support either case mapping.
(Slight editing of Linux Output for Display Purposes)

$ls -l $VXREL/message total 1144 -rw-rw-r-- 1 JDOE s7dev 16 Mar 8 21:33 messages.sys.dat -> MESSAGES.SYS.dat -rw-rw-r-- 1 JDOE s7dev 1105585 Mar 8 21:33 MESSAGES.SYS.dat -rw-rw-r-- 1 JDOE s7dev 16 Mar 8 21:33 messages.sys.idx -> MESSAGES.SYS.idx -rw-rw-r-- 1 JDOE s7dev 65536 Mar 8 21:33 MESSAGES.SYS.idx

For example, this command in our makefiles populates the standard messages file distributed with VX/RT

$(VXREL)/message/MESSAGES.SYS.dat: $(BINDIR)/msg @$(BINDIR)/msg < messages.msg