| Front Page | News Headlines | Technical Headlines | Planning Features | Advanced Search |

     

A State of SHOW Me

By Steve Hammond

Inside VESOFT covers tips and techniques you can use with VESOFT’s products, especially MPEX.

We are in the midst of what I consider to be the bicentennial years of one of the most significant events in the history of the United States. Between 1803 and 1806, Meriwether Lewis and William Clark led an expedition of almost 40 men through sections of what would be 11 different states to explore the newly-purchased territory. That territory expanded this country from the Atlantic to the Pacific and these men made geographic, geological and biologic discoveries as they went along.

Showing them the way was a series of guides, the most notably, a young Shoshone woman (although not much more than a girl) named Sacajawea. Since war parties never traveled with women, her presence was a sign to other Indian tribes that the expedition was peaceful. On more than one occasion, she recognized landmarks in her home land and showed the party the way through dangerous land

Just like the storied guides of the new land, MPEX has learned that it needs to show the way to help its followers and it has enough SHOW commands to lead you through the wilderness. The simplest is just %SHOW, which shows you your MPEX capabilities, default modes and the date format.
MPEX has even figured out a way to enhance one of the first commands you learn on an HP 3000. %SHOWME;DETAIL gives you:

                                        CURRENT LOGON:
STEVE,MANAGER.SYS,PUB
CAPS: SM,AM,AL,GL,DI,OP,CV,UV,LG,PS,NA,NM,CS,ND,SF,BA,IA,PM,MR,DS,PH USER: #S1325,MANAGER.SYS,PUB (IN PROGRAM) RELEASE: C.60.00 MPE/iX HP31900 C.16.01 USER VERSION: C.60.00 CURRENT: WED, DEC 24, 2003, 9:39 AM LOGON: WED, DEC 24, 2003, 9:38 AM CPU SECONDS: 1 CONNECT MINUTES: 1 $STDIN LDEV: 236 $STDLIST LDEV: 236

Hey, look at that! Along with the usual SHOWME information, when you add “;DETAIL” to the command, you get your capabilities. This is especially useful of you do a CHLOGON in the middle of your MPEX session.

%SHOWME;DETAIL
CURRENT LOGON: STEVE,MANAGER.SSSPROGS,PUB
CAPS: AM,AL,GL,ND,SF,BA,IA,MR,DS,PH
ORIGINAL LOGON: STEVE,MANAGER.SYS,PUB
(Followed by the SHOWME details for the current logon)

Now you are able to keep track of your current and original logon, which can get confusing.

And like just about everything else, MPEX has found a way to improve the SHOWOUT command. Using spool file attributes, you can look for specific characteristics of spool files:

   %showout
@.@.@(spool.jobaborted)
SPFile# Filename Pri JOB#:jobname,user.account,group Ready Date #O1521 $STDLIST 1 #J2648:JOBLSTN,MANAGER.AMCAS01 MON 8:57PM #O1522 $STDLIST 1 #J2649:JOBLSTN,MGR.FACR SAT 3:00AM ERR!

The “ERR!” at the end of the line indicates that second job terminated abnormally, while the first one was probably aborted by the operator before he started the 9pm backup job.

MPEX tweaks SHOWOUT a bit more with the SHOWOUTJ command, letting you define the job/session name without using the spool file attributes:
                                                        %SHOWOUTJ
@,@.FINANCE
SPFile# Filename Pri JOB#:jobname,user.account,group Ready Date #O6476 $STDLIST 11 #J5:NUUTSCLN,BATCHJOB.FINANCE (OPENED) #O1514 $STDLIST 1 #J2617:QTYCHECK,MGR.FINANCE FRI 3:00PM #O1518 $STDLIST 1 #J2626:FTP2UNIX,MGR.FINANCE FRI 11:01PM

This command called for any jobs in FINANCE. If you say %SHOWOUTJ BIGJOB, that’s like asking for BIGJOB,@.@ and %SHOWOUTJ ,MGR.PRODACCT then you are asking for @.MGR.PRODACCT. It’s a shorthand for a very common (and powerful) use of SHOWOUT.

SHOWPROC in MPEX has a few enhancements from its MPE cousin also - more information, files open, INFO strings in the run command and it works on MPE/V!!

%SHOWPROC

                                                QPRI  CPUTIME   STATE
JOBNUM  PIN  (PROGRAM) STEP


#s1325, steve,manager.sssprogs,pub (ldev 236)
                                                C152  0:00.142  WAIT
S1325   158  :MPEX
                                                C163  0:03.252  READY
S1325    88   (MAIN.PUB.VESOFT)
                                                C152  0:00.610  WAIT
S1325    71   (QEDIT.PUB.ROBELLE)
                                                
Here I am running a session as MANAGER.SSPROGS and I have MPEX (which runs MAIN.PUB.VESOFT) running and I have suspended a process running QEDIT. If I want to see what files I have open I just run:

                                                        %showproc;format=files
                                                QPRI  CPUTIME   STATE
JOBNUM  PIN  (PROGRAM) STEP
                                                  #    filename
code    recsz  access       eof   rec#     #ios  ty


#s1325, steve,manager.sssprogs,pub (ldev 236)
                                                 152  0:00.142  WAIT
S1325   158  :MPEX
                                                  8    ci
        .pub    .sys            nmprg   128w     rxl      182       0
0  p
                                                  9    udcsys   .pub
        .sys                     88b     r        36       26       5
p
                                                  10   snmpudc  .net
..sys                    80b     r        29        0       0  p
                                                  11   mpex
..pub    .sys                    80b     r        2         2       4
p
                                                C200  0:03.351  READY
S1325     88   (MAIN.PUB.VESOFT) 
8 main ..pub .vesoft nmprg 128w rxl 17943 0 0 p 9 nl ..pub .vesoft nmxl 128w rxl 513 0 0 p 10 /SYS/PUB/ 128w rw 0 0 0
Trust me - there’s a lot more lines to this display, but what it does show you is file name, type of file, record size, current access to the file, current EOF, current record number in use and the number of disc I/Os that have been performed on it in this process. I’ve never needed to use this information, but I know there are times (maybe debugging) when such data items are very helpful.

When you are working with variables - SHOWVAR and SHOWLVAR (for local variables) will show you those items. A simple SHOWVAR gives you the all the modifiable variables while SHOWVAR @ gives you everything - all MPEX variables, along with the HP/MPE variables. You can use wildcards to tailor the SHOWVAR to your needs.

Other SHOW commands we have mentioned in as part of earlier columns are SHOWALARM (to show which alarms are set), SHOWGOON (to show which processes are in the GOON - or ‘go on’ state), SHOWPAUSED and SHOWSAVED (to show what jobs are to be restarted when you execute the DOSAVED command).

Steve Hammond, who works for a professional association in Washington, DC, has been known to show off on occasion.


Copyright The 3000 NewsWire. All rights reserved.