HP3000-L Archives

July 2003, Week 1

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Donna Garverick <[log in to unmask]>
Reply To:
Donna Garverick <[log in to unmask]>
Date:
Wed, 2 Jul 2003 09:52:04 -0700
Content-Type:
text/plain
Parts/Attachments:
text/plain (100 lines)
Peter Smithson wrote:

> I typed SHOWCATALOG but it said there are no user defined ones in use.  This
> is a development machine used by a few people.

i'm going to refine some of what john said....

first, do a 'showcatalog;user=[your logon name]'.  a simple showcatalog will run
the output to your 'lp' device (and rather the opportunity for uttering impolite
words :-)  ideally, you are, as advised, logged on as manager.sys....so the
command would be 'showcatalog;user=manager'.  on one of my systems, i get:

:showcatalog;user=manager
USER UDC CATALOG FILE NAMES:
   NO USER UDC FILES IN EFFECT.

ACCOUNT UDC CATALOG FILE NAMES:
   NO ACCOUNT UDC FILES IN EFFECT.

SYSTEM UDC CATALOG FILE NAMES:
     SYSTEM0.UDC.SYS
     PVUTIL0.UDC.SYS

...as a result.  a search of raven's archives will show my rather strong
opinions about udc's.  imo, most udc's are unneccessary and a maintentance
headache.  *however* there are two condition when udc's are the perfect
solution.

one is when you want to override/wrap an existing mpe command.  the other is for
getting users' environment set at logon time.  it appears this is what peter is
wanting to do.

on my systems, the system-level udc has two functions -- to set certain
environment variables and to check that a jobname was provided -- all done in
~30 lines....that rarely need changing (thank goodness!).

to change any currently cataloged udc file....
1) text the file into your favorite editor.  for peter, it sounds like you'll
simply be adding a line that goes something like "setvar foo 'bar'".
2) you have to save your changes to a new file.  (i use a system of zeros and
ones (see the above example) to making naming the new file simple.  in my case,
if i were changing system0.udc -- the change would be saved to system1.udc.

now you have a choice....

3a) use the 'mv' command (in hpbin.sys) to overlay the active file with the
contents of your new/changed file.  to use the mv command you have to use hfs
notation to reference the files (and this is scary (why?) for many people).  in
my case, i'd type:
    :mv '../UDC/SYSTEM1 ../UDC/SYSTEM0'
the mv command will prompt for confirmation (respond with a 'y') -- and you're
done.  it's important to note that because the files are in mpe namespace -- you
have to use all capital letters to make 'mv' happy.  also, i don't qualify mv
because .hpbin.sys is in my path -- ymmv.

--or--

3b) do a 'setcatalog [curr_file_name];system;delete' immediately followed by
'setcatalog [new_file_name];system'.  it's important to realize that there's a
tiny window (depending on how fast 'immediately' is :-) where there is *no* udc
file set at the system level.  that's why john recommended getting the system
somewhat quiet when doing this work....which is also why i prefer using 'mv'.

whatever you do -- make dead certain that your changes are syntactically
correct.  there are few things more fun (giving birth, comes to mind) than
screwing up the system-level udc <sigh>  i strongly advise typing in your setvar
from the colon prompt -- hit return!! -- make sure the results are what you want
and use copy-n-paste when modifying the udc file.

better yet -- have your logon udc look something like

LOGON
OPTION LOGON,NOBREAK,NOHELP,NOLIST
if finfo('logon.scripts','exists')
  continue
  xeq logon.scripts
endif
******

(having an 'else' in the above if-endif is probably a good idea 8-)

changing 'logon.scripts' is very simple -- no magic required.

finally do a 'help setcatalog all'.                - d

--
Donna Garverick     Sr. System Programmer
925-210-6631        [log in to unmask]

Come, my friends, 'Tis not too late to seek a newer world.
Tho' much is taken, much abides; and tho'
We are not now that strength which in old days
Moved earth and heaven, that which we are, we are.
"Ulysses", A. Tennyson

>>>MY opinions, not Longs Drug Stores'<<<

* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *

ATOM RSS1 RSS2