VMS PIPE command

Having difficulties when installing the system? Your system runs slowly and requires some tweaking? You can get help here.
Post Reply

Topic author
tdirven
Member
Posts: 8
Joined: Wed Apr 01, 2020 9:11 am
Reputation: 0
Status: Offline

VMS PIPE command

Post by tdirven » Thu Apr 02, 2020 11:59 am

Hi,

Why is this command not working. How can I correct it?

$ pipe sho sys/ima | sea sys$pipe java/wind=(2,2)
%SEARCH-F-RFAERR, RMS error using RFA access: RFA = 0, 0
-RMS-F-RAC, invalid record access mode

Without /window it works. But I would like to use /window option.

$ pipe sho sys/ima | sea sys$pipe java
DSA221:[JAVA605]JAVA$JAVA.EXE
DSA221:[JAVA605]JAVA$JAVA.EXE
DSA221:[JAVA605]JAVA$JAVA.EXE
DSA221:[JAVA605]JAVA$JAVA.EXE
DSA221:[java800.java$80.jre.bin]java.exe;1
DSA221:[JAVA605]JAVA$JAVA.EXE

//Toine
Last edited by tdirven on Thu Apr 02, 2020 12:01 pm, edited 2 times in total.


snadow
Member
Posts: 8
Joined: Fri Feb 14, 2020 11:10 am
Reputation: 0
Status: Offline

Re: VMS PIPE command

Post by snadow » Sat Apr 04, 2020 2:48 pm

The problem you're encountering is that a PIPE is a sequential device with no "memory" of prior data records that it has processed, and using /WINDOW in the SEARCH command requires an input file that can be processed with OpenVMS RMS library routines, thus allowing individual record access to allow it to move around in the file.

You can achieve your goal by creating a "real" output file instead of using the pipeline... something like this will probably work. (I don't have JAVA running, so I did a search on SERVER instead)

Code: Select all

$ pipe x="''f$unique()'.txt" ; show sys/image/out='x' ; search 'x' server/wind=(2,2) ; del 'x';*
  Pid    Process Name    State  Pri      I/O       CPU       Page flts  Pages
20200081 SWAPPER         HIB     16        0   0 00:00:04.05         0      4
20200087 CLUSTER_SERVER  HIB     13       20   0 00:00:00.07        83    104
         $1$DKA0:[SYS0.SYSCOMMON.][SYSEXE]CSP.EXE;1
20200088 CONFIGURE       HIB     10       12   0 00:00:00.08        41     21
***************
2020008C ERRFMT          HIB      8       65   0 00:00:00.14       111    133
         $1$DKA0:[SYS0.SYSCOMMON.][SYSEXE]ERRFMT.EXE;1
2020008D CACHE_SERVER    HIB     16        3   0 00:00:00.03        31     43
         $1$DKA0:[SYS0.SYSCOMMON.][SYSEXE]FILESERV.EXE
2020008E OPCOM           HIB      7       76   0 00:00:00.06        97     46
         $1$DKA0:[SYS0.SYSCOMMON.][SYSEXE]OPCOM.EXE
2020008F AUDIT_SERVER    HIB      9       60   0 00:00:00.08       124    159
         $1$DKA0:[SYS0.SYSCOMMON.][SYSEXE]AUDIT_SERVER.EXE;1
20200090 JOB_CONTROL     HIB      9       44   0 00:00:00.05        49     75
         $1$DKA0:[SYS0.SYSCOMMON.][SYSEXE]JBC$JOB_CONTROL.EXE;1
20200092 SECURITY_SERVER HIB     10       72   0 00:00:05.61       375    378
         $1$DKA0:[SYS0.SYSCOMMON.][SYSEXE]SECURITY_SERVER.EXE;1
20200093 ACME_SERVER     HIB     10       71   0 00:00:01.14       455    450 M
         $1$DKA0:[SYS0.SYSCOMMON.][SYSEXE]ACME_SERVER.EXE;1
20200096 SMISERVER       HIB      9       42   0 00:00:00.13       159    179
         $1$DKA0:[SYS0.SYSCOMMON.][SYSEXE]SMISERVER.EXE;1
20200097 TP_SERVER       HIB     10       40   0 00:00:00.17        80    106
         $1$DKA0:[SYS0.SYSCOMMON.][SYSEXE]TPSERV.EXE;1
2020009D SYSTEM          CUR      4     1140   0 00:00:01.25      1275    125
$
Regards,
Scott


Topic author
tdirven
Member
Posts: 8
Joined: Wed Apr 01, 2020 9:11 am
Reputation: 0
Status: Offline

Re: VMS PIPE command

Post by tdirven » Mon Apr 06, 2020 6:12 pm

Thank you Scott,
You solution is working quite good :)

//Toine

Post Reply