HPlogo MPE/iX Commands Reference Manual > Chapter 8 Command List VI

Commands LISTFILE thru =LOGON

MPE documents

Complete PDF
Table of Contents
Index

LISTFILE


This command lists file and directory attributes through the use of options. The LISTFILE information is a superset of the LISTF command information.

Syntax


  LISTFILE [[fileset=] { fileset (fileset [,fileset]...) }]
    [[;FORMAT=]format_opt]
      [ [;SELEQ=]select_eq | ^indir]
      [ [;NAME=]pattern]
      [;PASS]
      [;{PERM} {;TEMP} [;PERMTEMP]]
      [;USENAME] [;TREE] [;NOTREE]

Parameters

fileset

Specifies the set of files to be listed. The default for fileset is @, meaning all MPE-named files in your current working directory (CWD). If fileset includes more than one file, be sure to separate the file names with commas and enclose the set in parentheses, for example:


  :listfile (test1,test2,test3)

The files named in the fileset parameter can be either in MPE or HFS syntax (explained below). The file names dot (.) and dot-dot (..) have special meaning, that is, current directory and the parent of the current directory, respectively.

Using Wildcards

You may use wildcard characters in any position in the file name. You may use the - character as a wildcard in any position except as the first character of the file name. These wildcards have the following meaning:

@

matches zero or more of any character

?

matches one character

#

matches one digit

[ ]

matches one character specified between the brackets

-

if used within brackets ([ ]), the hyphen (-) means a range of characters. For example, "[c - g]" means all the characters between c and g inclusive. The character on the left must alphabetically precede the character on the right.

-

If used immediately after the left bracket ([), or just before the right bracket (]), hyphen (-) means the character `-' itself.

For example, "[a-c]" means one of 'a', 'b', or 'c', whereas "[-a-c]" or "[a-c-]" means one of 'a', 'b', 'c', or '-'.

It is illegal to specify [c-a], or [a-A] because 'c' does not alphabetically precede 'a' and uppercase 'A' comes before lowercase 'a' (in ASCII character evaluation). Also note that it is legal to specify [A-z] and any legal special characters.

MPE Syntax

If fileset does not begin with the dot or slash (indicating HFS syntax), it is parsed according to MPE syntax and has the following form:


  filename[.groupname[.accountname] ]

A LISTFILE command using MPE syntax does not display files that do not follow the traditional MPE naming conventions of up to eight character names for files, groups and accounts.

If the fileset parameter does not specify groupname, all the files (with uppercase names that have up to 8 alphanumeric characters) in the current working directory (CWD) are listed irrespective of whether CWD is an MPE group or not. For example, the following command lists the files in all of the groups of the logon account:


  LISTFILE @.@

In contrast, the next command lists all the files in the CWD (which may be different from the logon group). However, only those files whose names are valid MPE names are displayed.

  LISTFILE @

If the CWD is not an MPE group, the information about the file is displayed in an HFS format discussed below.

You may have an MPE group that also contains files with HFS syntax, for example, they are lowercase, have long names, or contain special characters. To see both MPE and HFS files in a group, type,


  LISTFILE ./@

HFS Syntax

If the fileset begins with a dot (.) or a slash (/), it is assumed to be in HFS syntax. The characters composing the name may be selected from the following set:


  a-z
  
  A-Z
  
  0 1 2 3 4 5 6 7 8 9 - _ . ' ~ $ % ^ * + \ { } :

If the fileset parameter begins with a slash (/), the pathname is assumed to be an absolute pathname; otherwise, it is considered to be CWD relative.

If fileset ends in a slash, it is treated as a directory name, and pattern is used to determine the file names that match. All the directories and files that match fileset are found, and searched recursively to display the files and directories that match pattern. For example, if fileset is /SYS/@/, all files and subdirectories within SYS, and all files and directories within those subdirectories are displayed. The default for pattern is @.

If fileset does not end in a slash, all of the files that match fileset are displayed. For example, if fileset is /SYS/@, you will see a list of all files, subdirectories and groups in the SYS directory, but not any files or subdirectories within those directories.

If you have specified TREE, a trailing slash is assumed at the end of the fileset. For example, the command LISTFILE /SYS/@;TREE behaves like LISTFILE /SYS/@/. On the other hand, if you specify NOTREE, the trailing slash, if present at the end of a fileset, is ignored. Hence, the command LISTFILE /SYS/@/;NOTREE behaves like LISTFILE /SYS/@.

format_opt

A format selection. This parameter has no effect on the files selected for display, but affects the selection of information about the files that you see. If fileset begins with a dot (.) or slash (/), or if the CWD is different from your current MPE group, or if you specify the ;TREE option, then you will see the HFS output style. This, in part, means that:

  • Account, group, and directory names will end in a slash (/).

  • File names will appear at the end of the output lines.

  • Output begins in column two so that you can more easily detect filename wraparound from the previous line (which, if wrapping occurs, will begin in column one).

The following Table 8-1 "Format Options" displays the format options available.

Table 8-1 Format Options

Option Name Displayed Information
-2ACD Displays the file's ACD (access control definition). System Managers can view the ACD for any file. Account Managers can view the ACD for files in that account. File creators can view the ACD for their files. Other users can view an ACD only if that ACD specifies that the user has RACD (read ACD) access.
-1LABEL Shows only the file label in hexadecimal. The hexadecimal display generated by this format option only serves a diagnostic purpose in MPE/iX and is subject to change.
0FILES For each directory, this option displays PATH=The name of the file is displayed in a multicolumn format. This is the default.
1SUMMARY Displays the file name, file code, record size, record format, and other file characteristics such as ASCII or binary records, carriage-control option, file type, current end-of-file location, and the maximum number of records allowed in the file.
2DISC Displays the file name, file code, record size, file type, current end-of-file location, and the maximum number of records allowed in the file. It also displays the blocking factor, number of sectors in use, number of extents currently allocated, and the maximum number of extents allowed.
3 -3DETAIL DETAIL;PASS Displays the file name, record size, extent size, number of records, user's access rights, and other file characteristics including the date created, modified, and last accessed. The same information for MPE and HFS files is displayed except for the following differences:
  • Fully qualified MPE file name is replaced by an absolute pathname.

  • Creator field displays the fully qualified user ID (user.acct) of the file owner.

  • For MPE groups, the SECURITY field displays SAVE; for entries other than MPE groups it is blank. All file access matrix fields are blank for anything other than MPE accounts, MPE groups, and files in an MPE group.

  • The LOCKWORD field is omitted.

The creator, group id, and label address are omitted in FORMAT=3. These can be obtained by specifying -3 if you have sufficient capability (AM or SM)
4SECURITY Displays the security matrix for the file. This includes account, group and file-level security, and the access rights for the user.

For MPE groups and MPE accounts, the security matrix for group, account, and account-only are displayed. The rest of the fields of the file access matrix are blank.

For HFS directories, and files within HFS directories, all the fields of the file access matrix are blank. In addition, LISTFILE displays the message ACD EXISTS.
5 -5DATA DATA;PASS Shows LISTFILE,3 data and all file-specific data in LISTFILE,3 type format (KSAM, SPOOL, and symbolic links). If a file has no unique data, only the option 3 data is shown.
6QUALIFY Shows the absolute pathname of the file.
7UNIQUE Shows all file specific data in LISTFILE,5 type format, but does not show LISTFILE,3 data. If a file has no unique data, only the file name is displayed. Default = 0 (FILES).
8ACCESS Shows all accessors of the files listed. Restrictions apply.
9LOCKS Shows level 8 information and details about processes accessing the files including file locking data. Restrictions apply.
10SUMMARYWIDE Shows level 1 information but in a wider format that allows for expression o larger file sizes. Infromation is also given on how each file is currenly being accessed; Execute, Read, Write or Store
11DISCWIDE Shows level 2 information but in a wider format that allows for expression of larger file sizes. Disk space occupied by each file is presented in kilobytes (KB) rather than 256 byte sectors.

select_eq

A selection equation. Use the selection equation as a filter on fileset. From the set of files matching the fileset, only files that match the select_eq requirements are listed. You may select file types by using the FTYPE option, or you may select object types by using the OBJECT option. Selection equations have the following format:


  [FTYPE = KSAMXL | SPOOL | KSAM64 ]
  [OBJECT = ACCT | GROUP | FILE | DIR | HFSDIR | SYMLINK ]
  [CODE = number | mnemonic | PRIV ]
  [ACCESS = INUSE | OPEN | LOCK| EXCL ]

You must enclose selection equations in square brackets. For example:

  LISTFILE ./@ ;SELEQ=[OBJECT=DIR]

You can also use your text editor to make a file that contains the OBJECT or FTYPE statement, for example [OBJECT=DIR], and save it with a filename. Thereafter, you can select this file by entering the following command:

  LISTFILE ./@ ;SELEQ=^FILENAME

The OBJECT option applies to HFS files, and may have any one of the following values.
ACCT

Lists only the MPE ACCOUNT directory. You may use ACCTS, ACCOUNT, ACCOUNTS as synonyms for ACCOUNT.

GROUP

Lists only the MPE GROUP directory. You may use GROUPS as a synonym for GROUP.

FILE

Lists only the files and not directories/groups/accounts. You may use FILES as a synonym for FILE.

DIR

Lists only directories (including groups/accounts and the system root directory /). You may use DIRS, DIRECTORY, or DIRECTORIES as synonyms for DIRECTORY.

HFSDIR

Lists only directories other than root, accounts, and groups.

SYMLINK

Lists onlyfiles that are symbolic links.

NUMBER

List only files matching the specified file code number.

MNEMONIC

List only files matching the specified file code mnemonic

PRIV

List only files with negative file code.

INUSE

Lists only files that are currently in use by users or by MPE.

OPEN

Lists only files that are opened by progams. INUSE is a superset of OPEN.

LOCK

List only files being locked by a program.

EXCL

List only files being closed exclusively

pattern

When POSIX syntax is used in the fileset, pattern is exactly the same as the filename components of fileset as previously described. The name parameter applies only to HFS syntax.

The LISTFILE command displays only those file names which match the pattern. For example,


  LISTFILE /SYS/;NAME=OFF@

displays all the files/groups/directories under the SYS account that start with OFF, off, Off, and so on.

If pattern is specified within single or double quotes, it is case sensitive. For example,


  LISTFILE /SYS/;NAME=`OFF@'

displays all the files/groups/directories under the SYS account that start with OFF. It will not display names that start with off, Off, and so on. The default for the pattern parameter is @; that is, it matches all names without regard to case.


NOTE: You cannot use the NAME parameter for an MPE fileset because pattern can be specified as the part of the fileset. So, for example, instead of entering the command LISTFILE @.@.@;NAME=@DOC, enter the command LISTFILE @DOC.@.@. instead.

PASS

The PASS option displays sensitive data. Using it depends on your access rights to the data; that is if you are the owner or have AM or SM capability.

PERM

The PERM option displays permanent files only. "PERM" is the default.

TEMP

The TEMP option displays temporary files only.

PERMTEMP

The PERMTEMP option displays both permanent and temporary files. The permanent files are listed before the temporary files.

USENAME

The USENAME option applies only to HFS-named filesets. This option indicates that the name is to be used to determine how many levels to display. If the fileset ends in a slash (/), then all files at all levels below the target file are displayed. If the name does not end in a slash (/), then only the files at the specified level are displayed. For example, /@/@/@ indicates that all objects at the third level are to be displayed. USENAME is the default.

TREE

If the TREE option is specified, objects at all lower directory levels are displayed.

NOTREE

Indicates that only objects at the specified level are to be displayed. The NOTREE option overrides an HFS fileset that ends in a slash.

Operation Notes

You can use LISTFILE to list descriptions of one or more disk files at the level of detail you select. You must have traverse directory entries (TD) and/or read directory entries (RD) access for the directories in the pathname of the files that will be displayed by LISTFILE. (Refer to the ALTSEC command for further information on directory permissions.)

For example, if the fileset is /dir1/dir@/@, you must have TD access for the root directory (/) and dir1. Also, you must have RD access for dir1 since the next name is wildcarded (dir@) and have RD access to each directory within the path specified by /dir1/dir@ since the next (and final) name is a wildcard (@).

You may list any file, but there are restrictions on the kinds of information available to various users. A standard user may specify a listlevel of 0, 1, 2, 3, 4, 5, 6 or 7. If you have account manager capability (AM), you may request listlevel -1, -3 or -5, 8, 9 information about files in your own account. If you have System Manager capability (SM), you can specify any listlevel to view all information for all files on the system. List levels 8 and 9 are also available if you are the owner of the files. A file description is not listed unless the file's home volume set (PV) is mounted.

Use

This command may be issued from a session, a job, a program, or in BREAK. Pressing Break aborts execution.

If the fileset is in MPE syntax, LISTFILE only displays file names that follow MPE naming syntax. For example, LISTFILE @,2 will not display the file am_pm, whereas LISTFILE ./@,2 will display the file.

If fileset ends in a slash (/) or the ;TREE option, then the contents of every matching directory will be displayed recursively. To see just a directory name, but not all the files under it, use the ;NOTREE option or omit the trailing slash.

MPE Examples


  LISTFILE @
  
  FILENAME
  
  FILE1
  
  LISTFILE @.PUB.OFFICE,2
  ACCOUNT= OFFICE  GROUP= PUB

  FILENAME  CODE  ------------LOGICAL RECORD-----------  ----SPACE----
                    SIZE  TYP        EOF      LIMIT R/B  SECTORS #X MX

  F4                 80B  AF         411        411  16      144  2  *
  F5                 80B  AF         199        199  16       64  1  *

HFS Examples

The following figure illustrates a hierarchical directory structure. In this figure, directory names are shown as the character d plus a number (for example, d0), and file names are shown as the character f plus a number (for example, f1). The examples assume the directory structure shown. They also assume that the current working directory (CWD) is /ACCT/GROUP/d0.

Example File System

                /ACCT/GROUP/d0 = CWD
                    |
  /--------+--------|---+------------+--+--\
  |        |            |            |  |  |
  d1       d2           d3           f1 f2 f3
           |            |
    /---+--+--\     /---+---+---+--+--+--\
    |   |  |  |     |   |   |   |  |  |  |
    d4  f4 f5 d5    d6  f6  d7  f7 f8 f9 f10
    |         |     |       |
  /-|-\     /---\   |---\   \-+---+---+---+---+---\
  |   |     |   |   |   |     |   |   |   |   |   |
  f11 f12   d8  f13 f14 f15   d9  f16 f17 f18 f19 f20

The first example below sets the `HPPROMPT'' variable to show the current working directory, changes the CWD to d0, and produces a listing of all files one level below the CWD.

  :hello manager.acct,group
  
  :setvar hpprompt "hpcwd:"
  /ACCT/GROUP:chdir ./d0
  CWD is "/ACCT/GROUP/d0".
  /ACCT/GROUP/d0:listfile ./@
   PATH= /ACCT/GROUP/d0/
  
   d1/ d2/ d3/ f1 f2 f3

The next example produces a listing of all files one level below the CWD using FORMAT=2 (DISC) option.

 /ACCT/GROUP/d0:listfile ./@,2
  PATH= /ACCT/GROUP/d0/./
 
  CODE  ------------LOGICAL RECORD-----------  ----SPACE----  FILENAME
          SIZE  TYP        EOF      LIMIT R/B  SECTORS #X MX

           16W  HBD          4   67107839   1       64  2  *  d1/
           16W  HBD          4   67107839   1       64  2  *  d2/
           16W  HBD          4   67107839   1       64  2  *  d3/
           80B  AF          12         12   1       16  1  1  f1
           80B  AF          12         12   1       16  1  1  f2
           80B  AF          12         12   1       16  1  1  f3

In the next example, specifying the absolute pathname produces a listing of all entries one level below the group.

 /ACCT/GROUP/d0:listfile /ACCT/GROUP/@,2
  PATH= /ACCT/GROUP/
   
  CODE  ------------LOGICAL RECORD-----------  ----SPACE----  FILENAME
          SIZE  TYP        EOF      LIMIT R/B  SECTORS #X MX
  
           16W  HBD          4   67107839   1       64  2  *  *d0/

In the next example, specifying the NAME parameter produces a listing of all entries with names beginning with a lower case "d". Using the FORMAT=6 (QUALIFY) option shows the absolute pathname of all HFS entries.

  /ACCT/GROUP/d0:listfile /;name='d@';format=6
   /ACCT/GROUP/d0/
   /ACCT/GROUP/d0/d1/
   /ACCT/GROUP/d0/d2/
   /ACCT/GROUP/d0/d2/d4/
   /ACCT/GROUP/d0/d2/d5/
   /ACCT/GROUP/d0/d2/d5/d8/
   /ACCT/GROUP/d0/d2/d6/
   /ACCT/GROUP/d0/d3/
   /ACCT/GROUP/d0/d3/d7/
   /ACCT/GROUP/d0/d3/d7/d9/

The next example illustrates the use of the OBJECT=ACCT parameter to show all accounts on the system.

  /ACCT/GROUP/d0:listfile /@,6; seleq=[object=acct]
   /ACCT/
   /SYS/
   /TELESUP/
   /TEST/
     .
     .
     .

The next example illustrates the OBJECT=GROUP parameter to show all groups on the system.

  /ACCT/GROUP/d0:listfile /@/@;seleq=[object=group];format=qualify
   /ACCT/GROUP/
   /ACCT/PUB/
   /SYS/ALINE925/
     .
     .
     .
   /TELESUP/PUB/
   /TEST/PUB/
   /TEST/SPOOL/
   /TEST/SPOOLSTD/
   /TEST/TEMPLATE/
   
  /ACCT/GROUP/d0:

The next example illustrates the use of the OBJECT=DIR parameter to show all directories on the system. This is similar to the FINDDIR UDC.

  /ACCT/GROUP/d0:listfile /, qualify;seleq=[object=dir];format=qualify
   /
   /ACCT/
   /ACCT/GROUP/
   /ACCT/GROUP/d0/
   /ACCT/GROUP/d0/d1/
   /ACCT/GROUP/d0/d2/
   /ACCT/GROUP/d0/d2/d4/
   /ACCT/GROUP/d0/d2/d5/
   /ACCT/GROUP/d0/d2/d5/d8/
   /ACCT/GROUP/d0/d2/d6/
   /ACCT/GROUP/d0/d3/
   /ACCT/GROUP/d0/d3/d7/
   /ACCT/GROUP/d0/d3/d7/d9/
   /ACCT/PUB/
   /SYS/
   /SYS/ALINE925/
   /SYS/ALINK925/
     .
     .
     .
   /TELESUP/PUB/
   /TEST/PUB/
   /TEST/SPOOL/
   /TEST/SPOOLSTD/
   /TEST/TEMPLATE/
     .
     .
     .

The next example illustrates a summary listing (format option 1) of all files in subdirectory d3.

  /ACCT/GROUP/d0:listfile d3/@,1
   PATH= /ACCT/GROUP/d0/./d3/
   
   CODE  ------------LOGICAL RECORD-------  FILENAME
           SIZE  TYP        EOF      LIMIT

            16W  DBH          4   67107839  d7/
            80B  AF          12         12  f10
            80B  AF          12         12  f7
            80B  AF          12         12  f8
            80B  AF          12         12  f9

The next example illustrates a detail listing (format option 3) of all files in subdirectory d3.

  /ACCT/GROUP/d0:listfile ./d3/@,3
   ********************
   FILE: /ACCT/GROUP/d0/d3/d7/

   FILE CODE : 0                 FOPTIONS: DIRECTORY
   BLK FACTOR: 1                 OWNER   : **
   REC SIZE: 32(BYTES)           GROUP ID: **
   BLK SIZE: 32(BYTES)           SECURITY--READ    :
   EXT SIZE: 0(SECT)                       WRITE   :
   NUM REC: 4                              APPEND  :
   NUM SEC: 64                             LOCK    :
   NUM EXT: 2                              EXECUTE :
   MAX REC: 67107839                     **SECURITY IS ON
                                 FLAGS   : NO ACCESSORS
   NUM LABELS: 0                 CREATED : TUE, JUL 21, 1992,  2:20 PM
   MAX LABELS: 0                 MODIFIED: TUE, JUL 21, 1992,  2:23 PM
   DISC DEV #: 1                 ACCESSED: WED, JUL 22, 1992, 12:05 PM
   SEC OFFSET: 0                 LABEL ADDR: **
   VOLCLASS  : MPEXL_SYSTEM_VOLUME_SET:DISC
   ********************
     .
     .
     .
   FILE: /ACCT/GROUP/d0/d3/f9
   
   FILE CODE : 0                 FOPTIONS: ASCII,FIXED,NOCCTL,STD
   BLK FACTOR: 1                 OWNER   : **
   REC SIZE: 80(BYTES)           GROUP ID: **
   BLK SIZE: 80(BYTES)           SECURITY--READ    :
   EXT SIZE: 13(SECT)                      WRITE   :
   NUM REC: 12                             APPEND  :
   NUM SEC: 16                             LOCK    :
   NUM EXT: 1                              EXECUTE :
   MAX REC: 12                           **SECURITY IS ON
   MAX EXT: 1                    FLAGS   : NO ACCESSORS
   NUM LABELS: 0                 CREATED : TUE, JUL 21, 1992,  2:21 PM
   MAX LABELS: 0                 MODIFIED: TUE, JUL 21, 1992,  2:21 PM
   DISC DEV #: 2                 ACCESSED: TUE, JUL 21, 1992,  2:21 PM
   SEC OFFSET: 0                 LABEL ADDR: **
   VOLCLASS  : MPEXL_SYSTEM_VOLUME_SET:DISC
  
  /ACCT/GROUP/d0:

The next example illustrates the use of the FORMAT=-3 option to show the owner. You must be the owner, or have AM or SM capability to use this option.

  /ACCT/GROUP/d0:listfile /ACCT/GROUP/@,-3
   ********************
   FILE: /ACCT/GROUP/d0/

   FILE CODE : 0                 FOPTIONS: DIRECTORY
   BLK FACTOR: 1                 OWNER   : MANAGER.ACCT
   REC SIZE: 32(BYTES)           GROUP ID: ACCT
   BLK SIZE: 32(BYTES)           SECURITY--READ    :
   EXT SIZE: 0(SECT)                       WRITE   :
   NUM REC: 4                              APPEND  :
   NUM SEC: 64                             LOCK    :
   NUM EXT: 2                              EXECUTE :
   MAX REC: 67107839                     **SECURITY IS ON
                                 FLAGS   : 1 ACCESSOR,SHARED
   NUM LABELS: 0                 CREATED : TUE, JUL 21, 1992,  1:10 PM
   MAX LABELS: 0                 MODIFIED: TUE, JUL 21, 1992,  2:16 PM
   DISC DEV #: 2                 ACCESSED: WED, JUL 22, 1992, 11:40 AM
   SEC OFFSET: 0                 LABEL ADDR: $000000E1 $0009A220
   VOLCLASS  : MPEXL_SYSTEM_VOLUME_SET:DISC
   
  /ACCT/GROUP/d0:

The next example illustrates the use of the FORMAT=4 (SECURITY) option to display the security matrix for all objects one level below the group (in this case, d0).

  /ACCT/GROUP/d0:listfile /ACCT/GROUP/@,4
   ********************
   FILE: /ACCT/GROUP/d0/
   
   ACCOUNT ------ READ :
                 WRITE :
                APPEND :
                  LOCK :
               EXECUTE :
   GROUP -------- READ :
                 WRITE :
                APPEND :
                  LOCK :
               EXECUTE :
                  SAVE :
   FILE --------- READ :          FCODE:  0
                 WRITE :        **SECURITY IS ON
                APPEND :          ACD EXISTS
                  LOCK :
               EXECUTE :
  
   FOR MANAGER.ACCT: RACD, TD, RD, CD, DD

The next example illustrates the use of the FORMAT=-2 (ACD) option to display the access contol definition (ACD) for file f4 in subdirectory d2. Note that all users (@.@) have read ACD (RACD) access for this file.

  /ACCT/GROUP/d0:listfile ./d2/f4,-2
   PATH= /ACCT/GROUP/d0/d2/
   
   ------------ACD ENTRIES-------------- FILENAME

   @.@                : RACD             f4
  
  /ACCT/GROUP/d0:

Related Information

Commands

LISTF, PLISTF (UDC), LISTFTEMP, LISTSPF (for spool files), FINDFILE (UDC), FINDDIR (UDC), LISTDIR (UDC)

Manuals

None

LISTFTEMP


Displays information about one or more temporary files.

Syntax


  LISTFTEMP [fileset] [,listlevel] [;listfile]

Parameters

fileset

Specifies the set of temporary files to be listed. The default is @, producing a listing of all temporary files. You may select the temporary file(s) to be listed by using the fully qualified form for fileset:


  filename[.groupname[.accountname]]

Use the # symbol to specify a single numeric character. Use the ? symbol to specify a single alphanumeric character. Use the @ symbol to specify one or more alphanumeric characters. By itself, @ represents all the members of a set.

Refer to appendix G for examples of using wildcard characters.

listlevel

Specifies the level (amount and format) of information about the temporary file(s) you select. The default is zero.

The following Table 8-2 "List Options" displays the listlevel options available.

Table 8-2 List Options

Option Displayed Information
-2 Displays the file's ACD (access control definition). System Managers can view the ACD for any file. Account Managers can view the ACD for files in that account. File creators can view the ACD for their files. Other users can view an ACD only if that ACD specifies that the user has RACD (read ACD) access.
-1 Shows only the file label in hexadecimal. The hexadecimal display generated by this format option only serves a diagnostic purpose in MPE/iX and is subject to change.
0 For each directory, this option displays PATH=The name of the file is displayed in a multicolumn format. This is the default.
1 Displays the file name, file code, record size, record format, and other file characteristics such as ASCII or binary records, carriage-control option, file type, current end-of-file location, and the maximum number of records allowed in the file.
2 Displays the file name, file code, record size, file type, current end-of-file location, and the maximum number of records allowed in the file. It also displays the blocking factor, number of sectors in use, number of extents currently allocated, and the maximum number of extents allowed.
3 -3 Displays the file name, record size, extent size, number of records, user's access rights, and other file characteristics including the date created, modified, and last accessed. The same information for MPE and HFS files is displayed except for the following differences:
  • Fully qualified MPE file name is replaced by an absolute pathname.

  • Creator field displays the fully qualified user ID (user.acct) of the file owner.

  • For MPE groups, the SECURITY field displays SAVE; for entries other than MPE groups it is blank. All file access matrix fields are blank for anything other than MPE accounts, MPE groups, and files in an MPE group.

  • The LOCKWORD field is omitted.

The creator, group id, and label address are omitted in FORMAT=3. These can be obtained by specifying -3 if you have sufficient capability (AM or SM)
4 Displays the security matrix for the file. This includes account, group and file-level security, and the access rights for the user.

For MPE groups and MPE accounts, the security matrix for group, account, and account-only are displayed. The rest of the fields of the file access matrix are blank.

For HFS directories, and files within HFS directories, all the fields of the file access matrix are blank. In addition, LISTFILE displays the message ACD EXISTS.
5 -5 Shows LISTFILE,3 data and all file-specific data in LISTFILE,3 type format (KSAM, SPOOL, and symbolic links). If a file has no unique data, only the option 3 data is shown.
6 Shows the absolute pathname of the file.
7 Shows all file specific data in LISTFILE,5 type format, but does not show LISTFILE,3 data. If a file has no unique data, only the file name is displayed. Default = 0 (FILES).
8 Shows all accessors of the files listed. Restrictions apply
9 Shows level 8 information and details about processes accessing the files including file locking data. Restrictions apply.
10 Shows level 1 information but in a wider format that allows for expression o larger file sizes. Infromation is also given on how each file is currenly being accessed; Execute, Read, Write or Store
11 Shows level 2 information but in a wider format that allows for expression of larger file sizes. Disk space occupied by each file is presented in kilobytes (KB) rather than 256 byte sectors.

SECTORS

The number of sectors allocated for the file on disk. This number is always a multiple of 16 (the page size in MPE/iX). This value is an indication of the size of the file.

#X

Number of extents. This number is displayed only to maintain compatibility with MPE V/E. This value does not indicate the size of the file. The variable-extent structure of MPE/iX permits a file to have a variable number of extents, all of variable size.

MX

Maximum number of extents. This number is displayed only to maintain compatibility with MPE V/E. If the value is greater than 32 (the limit on MPE V/E), then * is displayed.

listfile

The name of the output file. The default is $STDLIST. If you specify listfile, it is automatically created as a new ASCII file with variable-length records, closed in the temporary domain, and with user-supplied carriage-control characters (CCTL), OUT access mode, and EXC (EXCLUSIVE access) option. All other characteristics are the same as they would be with the FILE command default specifications.

Operation Notes

This command lists descriptions of one or more temporary files at the level you specify. You may list any file, but, based on your capabilities, there are restrictions on the kind of information that is available to you.

Use

This command is available from a session, job, program, or in BREAK. Pressing Break aborts the execution of this command.

Examples

The following examples show the output displayed for the various levels of the LISTFTEMP command:

The next example shows "Level 0" output.


  :LISTFTEMP
  
  TEMPORARY FILES FOR PETE.HPXLII,DEVELOP
  
  LINKCLK.DEVELOP.HPXLII

The next example shows "Level 1" output.

  :LISTFTEMP ,1
  
  TEMPORARY FILES FOR PETE.HPXLII,DEVELOP
  
  ACCOUNT= HPXLII    GROUP= DEVELOP
  
  FILENAME CODE --------LOGICAL RECORD-----
                SIZE  TYP      EOF    LIMIT

  LINKCLK       128W  FB         0     1023 (TEMP)

The next example shows "Level 2" output.

  LISTFTEMP ,2
  
  TEMPORARY FILES FOR PETE.HPXLII,DEVELOP
  
  ACCOUNT= HPXLII     GROUP=  DEVELOP
  
  FILENAME CODE --------LOGICAL RECORD---------  ----SPACE----
                SIZE  TYP      EOF    LIMIT R/B  SECTORS #X MX
  
  LINKCLK       128W  FB         0     1023   1      128  1  8 (TEMP)

The next example shows "Level 3" output. Fields containing "n/a" are not implemented.

  :LISTFTEMP ,3
  ********************
  FILE: LINKCLK.DEVELOP.HPXLII
  
  FILE FCODE: 0                   FOPTIONS: ASCII,FIXED,NOCCTL,STD
  BLK FACTOR: 16                  CREATOR :
  REC SIZE: 80(BYTES)             LOCKWORD:
  BLK SIZE: 640(BYTES)            SECURITY--READ    :ANY
  EXT SIZE: 25(SECT)                        WRITE   :ANY
  NUM REC: 501                              APPEND  :ANY
  NUM SEC: 165                              LOCK    :ANY
  NUM EXT: 7                                EXECUTE :ANY
  MAX RED: 501                            **SECURITY IS ON
  MAX EXT: 7                      FLAGS   : n/a
  NUM LABELS: 0                   CREATED : FRI, 21 SEP 1986, 11:55 AM
  MAX LABELS: 0                   MODIFIED: FRI, 21 SEP 1986, 12:34 PM
  DISC DEV #: 3                   ACCESSED: FRI, 21 SEP 1986, 12:46 PM
  SEC OFFSET: 0                   LABEL ADDR: $00000010 $0010E014
  VOLSET    : MPEXL_SYSTEM_VOLUME_SET
   or
  VOLNAME   : MPEXL_SYSTEM_VOLUME_SET: MEMBER1
   or
  VOLCLASS  : MPEXL_SYSTEM_VOLUME_SET: DISC
   or
  CLASS     : DISC

The next example shows "Level -1" output.

 :LISTFTEMP LINKCLK,-1

 F = LINKCLK
 00000000 44495343 20202020 20202020 20202020 20202020 ....DISC
 20202020 20202020 20202020 20310000 4C494E4B 434C4B20              1.
 20202020 20202020 44455645 4C4F5020 20202020 20202020         DEVELOP
 00000000 50455445 20202020 20202020 20202020 00000000 ....PETE       
 20202020 20202020 20202020 20202020 4D475220 20202020                
 4850584C 49492020 00000000 FC000000 04660001 10537F19 HPXLII  .......
 00010401 00000000 00000300 00056EE7 2F538AED 00056EE7 ..............n
 2F538AED 00056EE7 2F53D1CC 00056EE7 2F538AED 00000000 /S....n./S....n
 00000000 000003FF 00000000 00000000 00000000 00000000 ...............
 0003FF00 00000000 00000000 00000000 00000100 00000100 ...............
 00010000 00000000 00000000 00000000                   ...............

Related Information

Commands

LISTF, LISTFILE, SAVE

Manuals

None

LISTGROUP


Displays information for one or more groups.

Syntax


  LISTGROUP [groupset] [,listfile] [;PASS]
    [;FORMAT={SUMMARY | BRIEF}]

Parameters

groupset

Specifies the set of groups to be listed. For account managers (AM) and system managers (SM), the default is all (@) groups within the user's logon account; for general users, the default is the logon group. You may use wildcard characters to specify more than one group. Use the ? symbol to specify a single alphanumeric character Use the # symbol to specify a single numeric character. Use the @ symbol to specify all combinations of valid characters. You may also specify group.account if you have system manager (SM) capability.

listfile

The name of the output file. The default is $STDLIST, a temporary file that cannot be overwritten by a BUILD command. It is automatically specified as a new ASCII file with variable-length records, closed in the temporary domain, and with user-supplied carriage-control characters (CCTL), OUT access mode, and EXC (EXCLUSIVE access) option. All other characteristics are the same as they would be with the FILE command default specifications.

PASS

Permits users with AM and SM capability to see the group password.

FORMAT

Used to specify one of several display formats.

SUMMARY

Provides a summary of the group information. If FORMAT is not specified, SUMMARY is the default.

BRIEF

Generates a list of group.account names only.

Operation Notes

This command produces group information in an ASCII format.

Use

This command is available from a session, a job, a program, or in BREAK. Pressing Break aborts the execution of this command. If you do not have account manager (AM) or system manager (SM) capability, you can list only your logon group. Users with AM capability may list any group in their account. Users with SM capability may list any group in the system.

Example

In the following example, since the user does not have AM or SM capability, the password does not appear in the display.

  :LISTGROUP DEVELOP;PASS;FORMAT=SUMMARY
  *******************
  GROUP: DEVELOP.TEST
  
  DISC SPACE: 5752(SECTORS)      PASSWORD:
  CPU TIME : 0(SECONDS)          SECURITY--READ    : GU
  CONNECT TIME: 0(MINUTES)                 WRITE   : GU
  DISC LIMIT: UNLIMITED                    APPEND  : GU
  CPU LIMIT : UNLIMITED                    LOCK    : GU
  CONNECT LIMIT: UNLIMITED                 EXECUTE : GU
  PRIV VOL : n/a                           SAVE    : GU
  FILE UFID: $000D4001 $80001050 $000FF620 $00000008 $0000000A
  MOUNT REF CNT: n/a
  HOME VOL SET : MPE_SYS_VOL_SET
  CAP: IA,BA
  
  :LISTGROUP @.@;FORMAT=BRIEF
  ACCOUNT1.PAYROLL
  ACCOUNT2.PAYROLL
  DEVELOP.TEST
  DOC.MASTER
  JONES.TEST
  PUB.SYS

Related Information

Commands

ALTGROUP, LISTACCT, LISTUSER, NEWGROUP, PURGEGROUP, LISTFILE

Manuals

Performing System Management Tasks

LISTJOBQ


LISTJOBQ lists all available job queues in the system.

Syntax


  LISTJOBQ

Parameters

None

Operation Notes

The LISTJOBQ command allows the user to list all the existing job queues in the system. It displays the queue name, limit, number of jobs in the queue that are in the EXEC state and the total number jobs in the queue, number of jobs in the EXEC state plus number of jobs in the WAIT state. This command is not allowed in the SYSSTART file.

Example


  :listjobq
  
  JOBQ      LIMIT     EXEC  TOTAL
  
  HPSYSJQ   3500      1     1
  MYJOBQ    100       1     1
  MJQ       10        1     2

Related Information

Commands

NEWJOBQ, SHOWJOB, PURGEJOBQ, SHOWJOB; JOBQ

Manuals

LISTLOG


Lists currently active logging identifiers on the system and whether automatic log file changing has been enabled.

Syntax


  LISTLOG [logid [;PASS]]

Parameters

logid

The specific logging identifier to be verified. Default is to list all currently active logging identifiers on the system.

PASS

Causes the password associated with the logging identifier to be displayed. This option can be used only by the creator of the logging identifier.

Operation Notes

This command lists the logging identifier specified with its associated creator and log file. The column labeled CHANGE indicates whether the CHANGELOG command is permitted; that is, whether the name of the first logging file ends in 001 and thus follows the naming convention required by the CHANGELOG command. The column labeled AUTO indicates whether an automatic CHANGELOG is permitted; that is, whether the AUTO parameter has been specified with a GETLOG or ALTLOG command.

If the logid parameter is not entered, all logging identifiers on the system are displayed with their creators and log files. The PASS parameter, which can be used only by the creator of the logging identifier specified, causes the password associated with the logging identifier to be listed.

Use

This command may be issued from a session, job, program, or in BREAK. Pressing Break has no effect on this command. System supervisor (OP) or user logging (LG) capability is required to use this command.

Example

To list all logging identifiers on the system, enter:

  :LISTLOG
  
  LOGID   CREATOR     CHANGE  AUTO  CURRENT LOGFILE
  
  TESTLOG LALITHA.MPEM  YES   YES   LAL001.PEJ
  TEST1   MARK.MPEM     YES   NO    M001.KSAM3
  TEST2   PAT.MPEM      NO    NO    TEST.ALVAR

Related Information

Commands

ALTLOG, CHANGELOG, GETLOG, LOG, OPENLOG, SHOWLOGSTATUS, RELLOG

Manuals

User Logging Programmer's Guide

LISTREDO


Displays the contents of the command line history stack. You may specify the format in which the listing appears, and whether it appears on $STDLIST or in a file. (Native Mode)

Syntax


  LISTREDO [START=m] [;END=n] [;OUT=outfile] [;{ ABS   REL   UNN }]


NOTE: This command follows the optional MPE/iX command line syntax. Refer to "Optional Format for MPE/iX Commands" at the beginning of this chapter.

Parameters

START or END

Specifies the range of commands to be displayed. Table 8-3 "History Stack Ranges" illustrates the effect of various START or END definitions.

Table 8-3 History Stack Ranges

Start End Effect
(omitted)(omitted) Lists all commands in the redo stack.
mn Lists commands m through n.
m(omitted) Displays commands m through the last command in the stack.
(omitted)n Displays the stack from the first command through command n.

If m and n are negative values, they refer to relative command numbers (relative to the most recent command, which is -1). If m and n are positive, they refer to absolute command numbers (the order in which they were entered). To display a single line, m must equal n.

REL

Displays the commands in their relative sequence (from -m to -1), where -1 denotes the most recent command in the stack.

ABS

Displays the commands in their absolute order (the order in which they were entered). ABS is the default.

UNN

Suppresses numbering of the commands during display.

outfile

Sends the listing to a disk file named outfile instead of to the default, $STDLIST. New disk files are created TEMP. File equations are ignored, unless outfile is preceded by an asterisk (*). You must use a file equation to overwrite a permanent file.

Operation Notes

The LISTREDO command displays the contents of the REDO command line stack. By default, the display order is from the earliest command to the most recent command. Before any command line is displayed, anything resembling a lockword is blanked out. However, any lockwords remain active and available for editing through the DO and REDO commands.

Use

This command is available in a session, job, or in BREAK. It is not available from a program. Pressing Break aborts the execution of this command.

Examples

If three commands are written to the REDO stack and the third command is LISTREDO, the display appears as:

  1) COMMANDONE
  2) COMMANDTWO
  3) LISTREDO

If the third command were LISTREDO ;REL, the display appears as:

  -3) COMMANDONE
  -2) COMMANDTWO
  -1) LISTREDO ;REL

To create a permanent disk file called CMDFILE containing the output from LISTREDO, enter:

  BUILD CMDFILE;REC=-80,,,ASCII;DISC=9
  FILE LIST=CMDFILE,OLD
  LISTREDO -10,-2;OUT=*LIST;UNN

CMDFILE contains a listing of nine command lines, but without the command number; -10 is 9 lines distant from the most recent command; -2 is one line distant from the most recent command. The most recent command is not listed.

Related Information

Commands

DO, REDO

Manuals

Using the HP 3000 Series 900: Advanced Skills

LISTSPF


Produces a listing of input and output spooled files. (Native Mode)

Syntax


  LISTSPF [[IDNAME=] { spoolid (spoolid [,spoolid]...) }]
    [[;SELEQ=] { select-eq ^indirect_file }] [ ;DETAIL   ;STATUS ]


NOTE: This command follows the optional MPE/iX command line syntax. Refer to "Optional Format for MPE/iX Commands" at the beginning of this chapter.

Parameter Definitions

spoolid

One or more spool file IDs: #Innn for input spool files or #Onnn for output spool files. These IDs are assigned by the spooling subsystem at spool file creation time. The # is optional; but if it is used, an O or I must also be used. If it is not used, the O is also optional for output spool files; that is, if neither [#]O nor [#]I is specified, then [#]O is assumed.

  • The symbol @ may be used to specify all spool files.

  • The symbol O@ may be used to specify all output spool files.

  • The symbol I@ may be used to specify all input spool files.

  • If @, O@, or I@ is specified, it must be the only SPOOLID value supplied. @, O@, and I@ are mutually exclusive.

  • If you specify duplicate SPOOLIDs, the system displays a warning message.

A user with SM or OP capability or a console user who specifies O@ will see all output spool files on the system. A user with AM capability who specifies O@ will see all output spool files created by users in the same account. All other users are limited to files they have created. Similar rules apply to I@ and @. The default is all the output spool files created by the current user.account. The default SPOOLID for the console user is all the output spool files on the system.

select-eq

The selection equation is used as a filter on the set of spool files selected. Only spool files whose attributes satisfy all filter requirements will be listed.

When you use a selection equation, enclose the entire equation in square brackets, and enclose individual keyword specifications (such as PAGES<100) in parentheses. For example, you use the following command to display all the output spool files from user.acct that have less than 100 pages:


  LISTSPF O@;SELEQ=[(OWNER=user.acct) AND (PAGES<100)]

If you are not an SM, OP, AM, or console user, the following command displays all the output files in your default group with a priority greater than 2 that were created before September 30, 1994.

  LISTSPF O@;SELEQ=[(PRI>2) AND (DATE<09/30/94)]

Selection equations have the following format. The symbol ::= should be interpreted as "can be replaced by".

  select-eq ::= [equation]

  equation  ::= {parm { > >= < <= <> = } value
                       (equation) NOT equation
                       equation { AND OR } equation }

In a selection equation, the logical operator AND takes precedence over the logical operator OR. For example, suppose you enter the following command:

  LISTSPF O@;SELEQ=[FILEDES=REPT OR OWNER=BOB.ACCTG AND PRI>8]

In this example, the selection equation [FILEDES=REPT OR OWNER=BOB.ACCTG AND PRI>8] is the same as [FILEDES=REPT OR (OWNER=BOB.ACCTG AND PRI>8)].

value ::= Appropriate values per data type. For example, STATE=READY or PRI>6.

parm ::= The parameter (parm) may be one of several attributes of the spool file, used as filters. The parm choices are described below.

  • parm ::= DEV: LDEV number, device name, or device class name. You can use wildcards for device name and device class name.

  • parm ::= FILEDES: Formal or actual file designator for the spool file. You may use wildcards.

    For example, if you enter the file equation below and print to it, EPOCLONG becomes the spool file's FILEDES.

    
      FILE EPOCLONG;DEV=EPOC;ENV=LPLONG.ENV.SYS
      PRINT MYFILE,*EPOCLONG
    
    
    You may also select files based on a null string by entering FILEDES= "" or FILEDES= ''. You must include such a construct if you specifically want to select such an attribute. Note that "" is not the same as " "; the blank is significant.

  • parm ::= SPOOLID: Spoolfile identifier number in the format #Onnn or #Innn.

    The "#" is optional; but if it is used, an O (for output) or an I (for input) must also be used. If # is not used, the O is also optional for output spool files; that is 123 is the same as #O123. The valid range of SPOOLIDs is 1 ≤ nnn ≤ 9,999,999. (The commas are for clarity; do not enter any commas in the actual equation.)

  • parm ::= PAGES: Number of pages in the spool file (if known). A positive integer number is expected. This attribute does not apply to input spool files; therefore, any logical condition involving the attribute always returns FALSE when tested against an input spool file.

  • parm:= FORMID: Form name. You can use wildcards. (The formid is an ASCII string up to 8 characters, the first of which must be a letter.).

    This attribute does not apply to input spool files; therefore, any logical condition involving the attribute always returns FALSE when tested against an input spool file.

    You may also select files based on a null string by entering FILEDES= "" or FILEDES= ''. You must include such a construct if you specifically want to select such an attribute. Note that "" is not the same as " "; the blank is significant.

  • parm:= STATE: The state can be one of READY, ACTIVE, OPEN, CREATE, PRINT, PROBLM, DELPND, SPSAVE, DEFER, XFER.

  • parm ::= JOBNAME: Job or session name under which the spool file was created. The job name can consist of up to 8 alphanumeric characters, the first of which must be a letter.

    For a job input spool file, the JOBNAME shown is allocated to that job, not the job or session that streamed it.

    You may use wildcards. The JOBNAME=@ parameter is a different use of the @ symbol in that it wildcards an optional field. The omission of this optional parameter indicates that all entries are displayed whether or not a job name exists.

  • parm ::= DISP: Disposition: SPSAVE or PURGE. This attribute does not apply to input spool files; therefore, any logical condition involving the attribute always returns FALSE when tested against an input spool file.

  • parm ::= COPIES: Number of copies. Minimum is 1, maximum is 65,535.

    This attribute does not apply to input spool files; therefore, any logical condition involving the attribute always returns FALSE when tested against an input spool file.

  • parm ::= PRI: Output priority. Minimum is 0, maximum is 14.

  • parm ::= JOBNUM: Job or session number under which the spool file was created, for example: #S257, #J329, or Sn (the "#" is optional) where 1 ≤ n ≤ 16,383. (The comma is shown for clarity; do not enter any commas in the actual equation.)

    For a job input spool file, the JOBNUM shown is allocated to the job, not the job or session that streamed it.

    You may use some wildcards; J@ accepts all jobs, S@ accepts all sessions. J'@ and S'@ are also allowed, The apostrophe (') indicates an imported spool file or a spool file recovered during START NORECOVERY.

  • parm ::= RECS: Number of records in the spool file. A positive integer is expected.

  • parm ::= OWNER: The user under which the spool file was created. The format of the owner is user.account. If the account is not specified, the user's current account is assumed. You can use wildcards.

    For a job input spool file, the OWNER is the user logon for the job, not the job or session that streamed it.

  • parm ::= JOBABORT: Select based on whether or not this is the $STDLIST of a job which aborted when an error was encountered but no CONTINUE was in effect.

    Valid values are TRUE and FALSE. Only "=" and "<*gt;" are allowed as relational operators.

    This attribute does not apply to input spool files; therefore, any logical condition involving the attribute always returns FALSE when tested against an input spool file.

  • parm ::= DATE: Creation date in the format mm/dd/yy or mm/dd/year. Note that the year can be in the form of yy, as in 10/10/88, or in the form of year, as in 10/10/1988; both are legal syntax for the DATE parameter.

^indirect_file

The indirect_file parameter specifies the name of a file containing the selection equation. It must be preceded by a caret (^). The selection equation contained in the file may not exceed 509 characters in length, including the brackets in which it must reside. There is no restriction on the indirect file code. If the record size exceeds 509, only 509 characters per record are read and a warning is issued. Backreferencing to a formal file designator is also allowed for an indirect_file name; that is, ^*filename is allowed. Any file is accepted as an indirect_file, unless the file system returns an error from FOPEN or FREAD.

There is no limit to the number of records in the indirect_file, only the total character count.

Records are processed as follows:

  • Leading and trailing blanks are stripped.

  • If the last nonblank character is an ampersand (&), it is also stripped; otherwise, one blank is added back to the end of the record as a delimiter.

  • The character count of the record is added to that of the records processed previously. If the total character count exceeds 509, an error is returned. If the total is less than 509, the current record is appended to previous records.

  • This process repeats until either 509 characters have been counted or the end-of-file is detected. Records terminating with or without ampersands may be mixed as desired in the indirect file.

  • If the resulting string is ≤ 509 characters, it is parsed.

  • If the parser detects a syntax error, or if any non-blank character follows the closing bracket (]) of the select-eq, an error is returned and the select-eq is not processed.

DETAIL

Produces a two-line description of the specified spool file(s). The default is a one-line display (not detailed).

STATUS

By default, LISTSPF displays a listing of selected spool files, followed by a statistical summary of those spool files, known as the status display.

Specification of the STATUS option causes only the status summary to be displayed summarizing the specified fileset. STATUS and DETAIL cannot be specified together.

Operation Notes

This command is provided to enable users to obtain a list of spool file information without having to look for it within a list that includes other files.

The display for LISTSPF is different from the SHOWIN/SHOWOUT display. LISTSPF displays both output and input spool files. The display shows output spool files, then input spool files, and finally a summary status display.

The parameters are divided into three groups: selection, detail and status.

The selection group allows a user to limit the display of spool files to a subset of the overall group of spool files on the system.

The detail parameter displays more than the default information on the files that have been selected.

The status parameter displays summary status only.

These parameters can be combined as desired except for ;DETAIL and ;STATUS, which are mutually exclusive.

This command displays status information for one or more spool files. The information reflects the status at the time the command is entered and always appears on the standard list device. You may use CI I/O redirection to redirect the output to a file.

Within device or device class, READY, CREATE, PRINT, and XFER state output spool files are displayed first, sorted by priority and then by date and time. Output spool files in DEFER, PROBLM, or SPSAVE states are shown next sorted by order of state and then priority and time.

Output spool files are displayed first, followed by input spool files and the status display. The display for input spool files is not sorted.

Display Field and Description

Below is an example of the first line of the display for LISTSPF. Following the example is a description of each field in the display.

  SPOOLID JOBNUM FILEDES PRI COPIES DEV  STATE  RSPFN OWNER
 
  #01     J12345 $STDLIST  6      1 EPOC CREATE RSPFN THISUSER.ACCT

SPOOLID

The unique spool file identifier.

JOBNUM

The job or session identifier of the job or session that created the spool file. The exception to this is that the jobnum for a JOB input spool file is the job number assigned the process whose $STDIN is (or will be) this input spool file, as opposed to the jobnum of the process that streamed the job. Job numbers containing an apostrophe (i.e., J'123) indicate that the spool file was imported by SPFXFER, RESTORE, or was recovered after a START NORECOVERY.

FILEDES

The formal or actual file designator for the spool file. Printing to a file equation such as FILE EPOCLONG;DEV=EPOC;ENV=LP88LONG.HPENV.SYS creates spool files whose formal designator is EPOCLONG.

DEV

The LDEV, device name or device class name that is the destination of the spool file. LDEVs are intentionally displayed with leading zeroes to simulate a device name. When you specify LDEVs with SELEQ, you need not supply the leading zeroes.

PRI

The input or output priority of the spool file.

COPIES

The total number of copies of the spool file to be printed.

STATE

The current state of the spool file. READY and DELPND apply to input spool files as well as output spool files.

  • CREATE: An output spool file is being created; that is, an output spooled device has been opened and is being written to, generating an output spool file. When the device is closed, the spool file enters the READY state.

  • READY: An output spool file is ready to be printed or an input spool file is ready to be accessed.

  • ACTIVE: An input spool file is active when it is being read from a STREAM file or a spooled device to disk.

  • OPEN: A JOB input spool file (the $STDIN for a batch job) is being accessed by the job's CI process or a DATA input spool file is being accessed by a process.

  • PRINT: An output spool file is being printed.

    If you enter the LISTSPF command while a trailer is being printed, you may observe two spool files in the PRINT state at the same time for the same device. This is because the spooler must open its next file to print before printing the trailer of its current one. (This is required to manage headers and trailers properly). Also note that you see only one file in the PRINT state during a trailer if the next file is another copy of the current file.

  • DEFER: An output spool file is in the deferred state.

  • SPSAVE: The SPSAVE option was specified when the spool file was created or at any time before it would have been deleted after its final copy was printed. That final copy has been printed, so the spool file is now in this state instead of being deleted.

  • PROBLM: The target device of the spool file does not match any device name or device class on the system. This usually occurs because the spool file has been restored to a system that has a different configuration than the system from which the spool file was stored.

  • DELPND: Either the spooler has printed the last copy of the output spool file and is waiting for one or more users to close the spool file before purging it, or someone has requested that the spool file be deleted (using the DELETESPOOLFILE or the SPOOLF...;DELETE command) and the file management routines are waiting for the last FCLOSE of the spool file before purging it.

  • XFER: The spool file has been selected for transportation from one node of a network to another. The XFER state is supported (in that it may be displayed, and used as a STATE in a selection equation), but is provided only for use as desired by third-party software providers. The spooler never places a file in this state nor uses the state as a basis for spooler actions.

RSPFN

The column under each letter R, S, P, F, and N, contains the respective letter as a flag indicating something about the spool file described in that row.

  • R indicates a restartable spooled job file, that is, one for which the ;RESTART option was specified in the :JOB record.

  • S indicates that SPSAVE disposition has been specified for this spool file. The spool file will be saved in the OUT.HPSPOOL group and account after the last copy is printed.

  • P indicates that the spool file is private.

  • F indicates that the spool file has a forms message associated with it and requires special forms on which to print. If a formid is present, its identity can be seen, using the ;DETAIL option, on the second line of the display for the given spool file.

  • N indicates that the spool file is not complete because insufficient account-level, group-level or system disk space was available when the spool file was created or the system aborted while the spool file was being created.

OWNER

This is the fully qualified name of the creator of the spool file.

Below is an example of the optional second line of the display, followed by an explantion of each display field.

  FORMID  JOBNAME   COPSRM  SECTS  RECS  PAGES  DATE     TIME
 
          TESTJOB      1     250   500    ~9   12/20/88  8:39

FORMID

An 8-character display, the first of which is a letter. If an F appears in the RSPFN column but this field is blank, it means that the file has a forms message but formid was not specified.

JOBNAME

The job or session name of the user who created the spool file or, for a job input spool file, the name of the job that will use the input spool file as its $STDIN file..

COPSRM

The number of copies of this file that remain to be printed, including any currently printing copy.

SECTS

The number of sectors occupied by the spool file.

RECS

The number of records in the spool file.

PAGES

The number of physical pages in the spool file. This quantity is accurate only for CIPER protocol, 2680/88 page printers, and HP5000/F1xx page printers, and then only if the device has printed at least one complete copy. The device keeps track of the pages as they are printed and returns the correct count at the end of the copy. Until the actual count is known, an approximate count calculated as number_of_records ÷ 60, and denoted by a leading tilde (~) is displayed.

For serial printers, even the count without the tilde is approximate because it is calculated as a best guess from the spool file data. It is not returned by the device because serial printers have no provisions for reporting this information.

DATE

The date that the file first entered the READY state (mm/dd/yy).

TIME

The time that the file first entered the READY state in 24-hour form (hh:mm).

STATUS

The status display has the following format:


  INPUT SPOOL FILES        OUTPUT SPOOL FILES
  ACTIVE   = 1;            CREATE   = 2;          READY    = 3;
  OPEN     = 2;            DEFER    = 1;          SELECTED = 4;
  READY    = 3;            DELPND   = 0;          SPSAVE   = 1;
                           PRINT    = 1;          XFER     = 0;
                           PROBLM   = 0;

  TOTAL IN FILES   = 6;    TOTAL OUT FILES   = 8;
        IN SECTORS = 144;        OUT SECTORS = 13090;

  OUTFENCE = 6
  OUTFENCE = 10 FOR LDEV 6

This display consists of three parts. The values in the first two parts represent only those spool files selected for display.
  • The itemized count of spool files in each of the various states. They are shown in two groups, input spool files to the left of the display and output spool files to the right. Of these, only SELECTED is not a state. Instead, SELECTED shows the total count of spool files whose output priority is higher than the global outfence; that is, SELECTED displays the sum of printing files plus those READY files whose output priority is above the global outfence.

  • The total number of input spool files, the sector count for input spool files, the total number of output spool files, and the sector count for output spool files.

  • The global outfence and any device-specific outfences.

Use

This command may be issued from a session, job, a program, or in BREAK. It is breakable. Only files to which the user has access are displayed.

Examples

Following are some examples of the displays produced by LISTSPF. The first and third examples display all output spool files for the current user.account not using the console. The second example displays all spool files for the current user.account not using the console.

  :LISTSPF
  
  SPOOLID JOBNUM FILEDES PRI COPIES DEV    STATE RSPFN OWNER
  #0123   J12    SP       13      2 PP     PRINT F     DEV.HPE
  #0124   S14    LIST      9      1 000012 READY F     DEV.HPE
  #0128   J144   $STDLIST  8      1 EPOC   READY       DEV.HPE
  #01233  S1234  OUTLIST   0      1 FASTLP DEFER       DEV.HPE
  
  INPUT SPOOL FILES        OUTPUT SPOOL FILES
  ACTIVE   = 0;            CREATE   = 0;          READY    = 2;
  OPEN     = 0;            DEFER    = 1;          SELECTED = 3;
  READY    = 0;            DELPND   = 0;          SPSAVE   = 0;
                           PRINT    = 1;          XFER     = 0;
                           PROBLM   = 0;
  
  TOTAL IN FILES   = 0;    TOTAL OUT FILES   = 4;
        IN SECTORS = 0;          OUT SECTORS = 5964;
  
  OUTFENCE = 6
  
  :LISTSPF @;DETAIL
  
  SPOOLID JOBNUM FILEDES PRI COPIES DEV    STATE RSPFN OWNER
          FORMID   JOBNAME   COPSRM SECTS   RECS PAGES DATE   TIME
  #O123   J12    SP       13      2 PP     PRINT F     DEV.HPE
                   TESTJOB        1 250     500    125 07/09/88  8:39
  
  #O124   S14    LIST      9      1 000012 READY F     DEV.HPE
          PAYCHECK TESTJOB        1 250     500     ~9 12/20/88  8:39
  
  #O128   J144   $STDLIST  8      5 EPOC   READY       DEV.HPE
                   LPJOB          3 250     127     21 12/20/88 22:19
  
  #O1233  S1234  OUTLIST   0      1 FASTLP DEFER       DEV.HPE
                   TESTJOB        1 250     500     ~9 12/20/88  8:39

  #I564   J164   $STDIN             000010 READY       DEV.HPE
                   BATCHJOB      17 12                  2/20/88 22:23

  INPUT SPOOL FILES        OUTPUT SPOOL FILES
  ACTIVE   = 0;            CREATE   = 0;          READY    = 2;
  OPEN     = 0;            DEFER    = 1;          SELECTED = 3;
  READY    = 1;            DELPND   = 0;          SPSAVE   = 0;
                           PRINT    = 1;          XFER     = 0;
                           PROBLM   = 0;

  TOTAL IN FILES   = 1;    TOTAL OUT FILES   = 4;
        IN SECTORS = 17;         OUT SECTORS = 1000;
  
  OUTFENCE = 6
  
  :LISTSPF;STATUS
  
  INPUT SPOOL FILES        OUTPUT SPOOL FILES
  ACTIVE   = 0;            CREATE   = 0;          READY    = 2;
  OPEN     = 0;            DEFER    = 1;          SELECTED = 3;
  READY    = 0;            DELPND   = 0;          SPSAVE   = 0;
                           PRINT    = 1;          XFER     = 0;
                           PROBLM = 0;

  TOTAL IN FILES   = 0;    TOTAL OUT FILES   = 4;
        IN SECTORS = 0;          OUT SECTORS = 1000;

  OUTFENCE = 6

Related Information

Commands

SPOOLER, SPOOLF, SHOWIN, SHOWOUT, LISTFILE

Manuals

Native Mode Spooler Reference Manual

LISTUSER


Displays information for one or more users.

Syntax


  LISTUSER [userset] [,listfile] [;PASS]
    [;FORMAT={SUMMARY | BRIEF | DETAIL}]

Parameters

userset

Specifies the set of users to be listed. The default is all (@) users (and accounts) within the user's capabilities (AM or SM). Use wildcard characters to specify more than one user. Use the ? symbol to specify a single alphanumeric character. Use the # symbol to specify a single numeric character. Use the @ symbol to specify zero or more alphanumeric characters.

listfile

The name of the output file. The default is $STDLIST, a temporary file that cannot be overwritten by a BUILD command. It is automatically specified as a new ASCII file with variable-length records, closed in the temporary domain, user-supplied carriage-control characters (CCTL), OUT access mode, and EXC (EXCLUSIVE access) option. All other characteristics are the same as they would be with the FILE command default specifications.

PASS

Permits users with account manager (AM) and system manager (SM) capability to see the user password.

FORMAT

Used to specify one of several display formats.

SUMMARY

Provides a summary of the account information. If FORMAT is not specified, SUMMARY is the default.

BRIEF

Generates a list of user.account names only.

DETAIL

Displays all information associated with the account.

Operation Notes

This command produces user information in an ASCII format.

Use

This command is available from a session, a job, a program, or in BREAK. Pressing Break aborts the execution of this command. If you do not have system manager (SM) or account manager (AM) capability, you can list only your logon user. If you have AM, you may list any user in your account. If you have SM, you may list any user in the system.

Example

In the following example, since the user has AM capability, the password is displayed:

  :LISTUSER PETE;PASS
    
    ...or...
  
  :LISTUSER PETE;PASS;FORMAT=SUMMARY
  
  *******************
  USER: PETE.TEST
  
  HOME GROUP: DEVELOP         PASSWORD: MYPASS
  MAX PRI   : 150             LOC ATTR: $00000000
  LOGON CNT : 1
  CAP: AM,AL,GL,DI,CV,UV,LG,CS,ND,SF,IA,BA,PH,DS,MR,PM
  
  :LISTUSER @;FORMAT=BRIEF
  PETE.TEST
  MIKE.TEST
  CHRIS.TEST
  
  :LISTUSER PETE;FORMAT=DETAIL
  *******************
  USER      : PETE.TEST
  PASSWORD  : **
  UID       : ##
  GID       : ##
  MAX PRI   : 150
  LOC ATTR  : $00000000
  LOGON CNT : 2
  HOME DIR  : /UI/DEVELOP
  LOGON CI  : /SYS/PUB/CI
  CAP       : AM,AL,GL,DI,CV,UV,LG,PS,CS,ND,SF,BA,IA,PM,MR,DS,PH


NOTE: In the above example, the "##" in the UID and GID fields indicate that no UID or GID is associated with the user. The PXUTIL utility should be run to create UID and GID entries.

Related Information

Commands

ALTUSER, LISTACCT, LISTGROUP, NEWUSER, PURGEUSER, PXUTIL

Manuals

None

LMOUNT


Requests a logical reservation of a volume set. This informs the system that the volume set is to be reserved system-wide. The equivalent native mode command is VSRESERVESYS. (Native Mode)

Syntax


  LMOUNT [{ * volumesetname }] [.groupname [.acctname]]
    [;GEN=[genindex]]


NOTE: For the MOUNT, DISMOUNT, LDISMOUNT, and LMOUNT commands a volume set name such as V.G.A can have no more than eight characters in any part of the name. If the length of V, G, or A exceeds eight characters, an error is reported.

Parameters

* or <blank>

Specifies the home volume set for the group and account specified, or for the logon group and account if groupname or groupname.acctname is not specified.

volume- setname

An artificial component of a volume set name used to maintain backward compatibility with MPE V/E.

groupname

Used only for compatibility with MPE V/E.

acctname

Used only for compatibility with MPE V/E.

genindex

A value from -1 to 32,767 specifying which generation of the home volume set is to be reserved. A value of -1 indicates that any generation is permitted. If omitted, the system ignores the generation when attempting to satisfy the MOUNT request.

Operation Notes

When the console operator executes the LMOUNT command, all disk drives containing members of the specified volume set become RESERVED. Each volume set is logically attached to the drive until an LDISMOUNT command is executed, at which time the disk drive is no longer reserved on a system-wide basis. A VSCLOSE may then be issued to remove the volume set. (Refer to the VSCLOSE command in this chapter.)

Executing an LMOUNT command does not prevent users from issuing a MOUNT command for the volume set in question. Users may issue a DISMOUNT command for the specified volume set, but doing so has no effect; the LMOUNT command takes priority over a general user command.

System users issue mount requests implicitly through their programs, or explicitly with a MOUNT command.

If the mountable volumes facility was enabled with VMOUNT ON,AUTO, MPE/iX automatically attempts to satisfy the mount request; the LMOUNT succeeds if the specified volume set is physically connected to the system.

If the mountable volumes facility was enabled with VMOUNT ON (omitting the AUTO parameter), you must reply to your own mount request, even though the volume set may already be mounted and in use.

Volume sets in MPE/iX are not tied to groups and accounts. This is different from the MPE V/E scheme of disk partitioning.

The MPE/iX naming convention for volume sets differs from the MPE V/E naming convention for private volumes. MPE/iX volume set names may consist of any combination of alphanumeric characters, including the underbar (_) and the period (.). The name must begin with an alphabetic character and consist of no more than 32 characters.

Table 8-4 "Command Acceptance of Naming Conventions - LMOUNT Command" illustrates the difference between naming conventions for MPE/iX volume sets and MPE V/E private volumes.

Table 8-4 Command Acceptance of Naming Conventions - LMOUNT Command

Specify MPE V/E xxxMOUNT Command Accesses MPE/iX VSxxxxxx Command Accesses
myset.grp.acct The volume set named myset.grp.acct. The volume set named myset.grp.acct.
myset The volume set named myset.logongrp.logonacct. The volume set myset.
*.grp.acct The home volume set of the group grp in account acct. Causes an error.
myset_grp_acct Error (name component longer than eight characters). The volume set named myset_grp_acct.
m_g_a The volume set named m_g_a.logongrp.logonacct, provided it exists. If it does not exist, an error is reported. The volume set named m_g_a.

In MPE V/E, the name V.G.A indicates that V is the name of a volume set, that G is the name of a group, and that A is the name of an account.

MPE/iX accepts that name in that form, but no interpretation is made as to the referencing of G and A. Instead, MPE/iX treats V.G.A as a single, long string name, just as it would treat A_VERY_LONG_NAME_FOR_SOMETHING.

As a convenience to established Hewlett-Packard users, MPE/iX accepts the naming convention that was used for MPE V/E private volumes.Thus MOUNT V.G.A succeeds and MOUNT V accesses the same volume set, provided you are logged on to account A, group G. The MPE V/E commands are able to default the logon account and group.

However, VSRESERVE V succeeds only if there is a volume set V in existence. The MPE/iX commands does not call up any default specifications for group and account. VSRESERVE V.G.A succeeds only if a volumeset V.G.A is online. With MPE/iX VSxxxxxx commands, the .G.A component of this name is interpreted as a string, neither more nor less specific than _G _A.

If a volume set is named according to the MPE V/E naming convention (V.G.A), you must use an unambiguous reference when using the MPE/iX volume set commands.

It is recommended that you not use the MPE V/E naming convention and xxxMOUNT commands. Instead use the MPE/iX naming convention and VSxxxxxx commands. Alternating between MPE V/E and MPE/iX commands may lead to errors. For example, MOUNT X used in a job stream attempts to access a volume set named X.logongrp.logonacct which may or may not be your intention.

Use

This command may be issued from a session, job, program, or in BREAK. Pressing Break has no effect on this command. It is executable only at the console unless distributed to users with the ALLOW command.

Examples

To reserve a volume set named DATABASE.PAYROLL.ACCTNG, enter:

  LMOUNT DATABASE.PAYROLL.ACCTNG

You may also use the VSRESERVESYS command:

  VSRESERVESYS DATABASE.PAYROLL.ACCTNG

Related Information

Commands

MOUNT, DISMOUNT, DSTAT, VSRESERVE, VSRELEASE

Manuals

Volume Management Reference Manual

LOG


Starts, restarts, or stops user logging.

Syntax


  LOG logid, { RESTART | START | STOP }

Parameters

logid

Logging identifier previously established with a user GETLOG command.

START

Initiates a logging process.

RESTART

Restarts a logging process.

STOP

Terminates a logging process.

Operation Notes

This command allows you to start, restart, or stop user logging. For further discussion of user logging, refer to the User Logging Programmer's Guide.

To change log files without the delay normally caused by executing a LOG command, use the CHANGELOG command to enable interactive log file changing. Use the AUTO parameter of the ALTLOG and GETLOG commands to enable automatic log file changing.

Use

This command may be issued from a session, job, program, or in BREAK. Pressing Break has no effect on this command.

This command can be executed only by users to whom it has been allowed (see ALLOW command) or to users logged onto the console (or to a terminal that has taken the console via the CONSOLE command). System Supervisor (OP) capability is also required.

Example

To start the logging process identified by logid LOGPROCX, enter:

  LOG LOGPROCX,START

Related Information

Commands

ALTLOG, CHANGELOG, GETLOG, SHOWLOGSTATUS

Manuals

User Logging Programmer's Guide

=LOGOFF


Aborts all executing jobs/sessions and prevents any further logons. You may optionally specify one job or one session that is to remain logged on.

Syntax


  =LOGOFF [ #Snnn | #Jnnn ]

Parameters

#Snnn or #Jnnn

The number of the session or the job that is to remain logged on after all others are aborted. Default is that all sessions and all jobs are logged off.

Operation Notes

This command sets the job and session execution limits to 0 and aborts all jobs and sessions, including the session logged on to the system console. You may leave one session or one job logged on by specifying that session or job with either the #Snnn or #Jnnn parameter.

Execution of this command leaves the system in a job/session inactive state, unless you specify one job or session that is to remain logged on. Job and session introduction is disabled. No other jobs or sessions are logged on until a CTRL-A LOGON is entered.

Any pending requests that require a =REPLY from the system console must be satisfied before issuing =LOGOFF, or MPE/iX

Use

This command may be issued only from the physical console. Pressing Break has no effect on this command.

Examples

To abort all executing jobs/sessions, enter:

  CTRL-A
  =LOGOFF
  16.53/25/ALL JOBS LOGGED-OFF

To abort all executing jobs and sessions except #S2, enter:

  CTRL-A
  =LOGOFF #S2

To perform the MPE/iX CTRL-A logoff, enter the following commands:

  CTRL-A
  =LOGOFF #S1
  =LOGON
  LIMIT 0,0
  JOBFENCE 0

This logs off all users except #S1 and allows only users with system manager (SM) and system supervisor (OP) capability to log on. It is assumed here that the console operator controls #S1.

Related Information

Commands

=LOGON, ABORTJOB, TELL, WARN

Manuals

System Startup, Configuration, and Shutdown Reference Manual
Performing System Operation Tasks

=LOGON


Enables job/session processing following a =LOGOFF command.

Syntax


  =LOGON

Parameters

None.

Operation Notes

This command enables the processing of jobs/sessions following the execution of the =LOGOFF command. The =LOGON command reestablishes the job/session limits that were in effect before the execution of a =LOGOFF command and allows jobs/sessions to log on again.

Use

This command may be issued from a session, program, or in BREAK, but not from a job. Pressing Break has no effect on this command. It may be issued only from the physical console.

Example

To enable job/session processing, enter:

  CTRL-A
  =LOGON

Related Information

Commands

=LOGOFF

Manuals

System Startup, Configuration, and Shutdown Reference Manual
Performing System Operation Tasks




Chapter 8 Command List VI


Chapter 9 Command List VII