SW Consulting Sponsor Message |
||||||||||||
|
||||||||||||
|
||||||||||||
Hidden Value details commands and procedures in MPE (and
some in Vesofts MPEX) that can improve your productivity with HP 3000
systems. Get a free NewsWire HP 3000 Always Online cap submit your
MPE tip directly to us here at the NewsWire. Send your tips to
editor@3000newswire.com, or fax them to 512.331.3807. Yesterday I tried using an HP DDS-1 60m tape and our DDS-1 drive did not like it. Our DDS-2 drive also did not like a 90m non-DDS certified tape. Am I doing something wrong? Joe Geiser replies: For some unknown reason, DDS-2 drives have a problem with 60m and 90m tapes that were previously recorded with DDS-1, unless compression is turned off on the DDS-2 drive. If you turn off compression on the DDS-2 drive, it should be able to use those tapes. If not, then these tapes will probably work only on the DDS-2 drive. Im looking for commands to replace a production file while users are on the system without asking them to log off then back on to change the file. Does the 3000 have anything like this? John Zoltak replies: There are MPE commands that let you do this. PURGELINK <file> RENAME <newfile>,<file> I use these commands to replace currently in use program files so that when the user exits they will get the new version when they re-enter. This works for UDC files as well. Can particular users or accounts be confined to run only a few commands? John Korb replies: Logon UDCs (User Defined Commands) can be set up which limit what the user can do including automatically placing them in a specific program, and automatically logging them off the system when the program terminates. Ive been looking at my MPE/iX file listings and see something called Lex and something called Yacc. What are these programs for? Bruce Toback replies: Lex is a program that will produce a lexical analyzer from a set of patterns describing a language syntax. The lexical analyzer source code is in C and expects to call some routines that you supply in order to get input text. The analyzer is in the form of a couple of subroutines that you call in order to analyze the input stream and retrieve individual tokens. (Actually, Lex produces tables for the subroutines; the routines themselves are part of a library thats supplied with Lex.) Yacc takes a formal grammar and
produces a compiler for it. The compiler produced by Yacc calls routines
that you supply in order to perform the semantic actions associated with
various language constructs, as well as routines that you supply in order
to provide it with tokens in the grammar. Naturally, the compiler is
perfectly happy to call the Lex-produced lexical analyzer for this
purpose. |
||||||||||||
Copyright The 3000 NewsWire. All rights reserved. |