The HDR command analyzes the disk file header stack or a particular header and prints out that analysis.
Syntax
── HDR ─┬────────────────────────────────────────────┬────────────────────┤ ├─ SUMMARY ──────────────────────────────────┤ ├─ ROWS ─────────────────────────────────────┤ ├─ ATTRIBUTES ───────────────────────────────┤ ├─<number>──────────────────┬─┬──────────────┤ ├─ JOB ─<decimal number>────┤ ├─ ROWS ───────┤ ├─<quoted file title>───────┤ ├─ RAW ────────┤ └─<quoted wild-card string>─┘ └─ ATTRIBUTES ─┘
Explanation
The following text describes the meaning of each construct. Refer to “Basic Constructs” earlier in this section for information about the <number> and the <quoted file title> constructs.
HDR
Prints an analysis of all the file headers that existed in memory when the dump was performed. Row address words are not printed.
HDR ATTRIBUTES
Prints a list of file attributes for all of the file headers that existed in memory when the dump was performed.
HDR SUMMARY
Prints a list containing the location and names of all the headers that existed in memory when the dump was performed.
HDR ROWS
Prints all the information that the HDR form produces plus an analysis of the row address words.
HDR <number>
Prints the same information as HDR, but only for the header specified by the number.
HDR <number> ATTRIBUTES
Prints a list of file attributes for the header specified by number.
HDR <number> ROWS
Prints the same information as HDR ROWS, but only for the header specified by the number.
HDR <number> RAW
Prints in hex format the entire header specified by the number.
HDR <quoted file title>
Analyzes every disk header whose title matches the file title.
HDR <quoted file title>ATTRIBUTES
Prints a list of file attributes for every disk header whose title matches the file title.
HDR <quoted wild-card string>
Analyzes every disk header whose title matches the sequence of characters specified in the quoted wild-card string. The wild-card characters include the equal sign (=) and the question mark (?).
-
The equal sign matches any sequence of characters.
-
The question mark matches any single character.
Enclose the wild-card string in either apostrophes (') or quotation marks ("). Use apostrophes if the required file title contains special characters that are enclosed in quotation marks.
Following are some examples of the HDR <quoted wild-card string> command:
The command . . . |
Analyzes every disk file header . . . |
HDR "=CFILE=" |
With the string CFILE in the file title. |
HDR '=s/sc=' |
With the string s/sc in the disk file title. |
HDR "=P?X=" |
That contains the letter P, followed by any single character, followed by the letter X anywhere in the file title. |
HDR <quoted wild-card string> ATTRIBUTES
Prints a list of file attributes for every disk header whose title matches the sequence of characters specified in the quoted wild-card string.
HDR <quoted file title> ROWS
HDR <quoted wild-card string> ROWS
Prints the same information as the HDR ROWS command, but only for the header specified by the quoted file title or the quoted wild-card string.
HDR <quoted file title> RAW
HDR <quoted wild-card string> RAW
Produces a printout in hex format of the entire header specified by the quoted file title or the quoted wild-card string.
HDR JOB <decimal number>
Searches the header stack and prints the requested header if it is located.
HDR JOB <decimal number> ATTRIBUTES
Prints a list of file attributes for the header associated with the specified job.
HDR JOB <decimal number> ROWS
Prints the same information as the HDR ROWS command, but only for the header specified by the job number.
HDR JOB <decimal number> RAW
Produces a printout in hex format of the entire header specified by the job number.
Example 1
The following example shows output from the HDR command. The following list explains the various lines of the output in the example:
-
The first line with HDR [number] on it shows the data descriptor for the array containing the disk file header, and it shows the title of the file.
-
The line with HDR0 [number] on it shows the word in the MCP HDR0 array that the system uses when it searches to determine whether a particular file has a header in memory.
-
Optionally, a line that contains HEADER LOCK shows the stack that owns the lock for the header. The MCP uses this lock when it alters the header. DUMPANALYZER prints this line only if the lock is owned by a stack.
-
Next is a detailed display of the words in the header, the row address words for the header (if requested with the ROWS option), and the OPTIONAL ATTRIBUTE WORDS contained in the header.
-
The line that contains MEMHDRS [number] on it shows the descriptor for the array that the MCP uses to keep track of the header while it is in memory.
-
Last is the detailed display of the words contained in the MEMHDR for that disk file header.
INPUT: HDR 00B0 HDR [00B0] AT 5 800007 802407 (LENGTH = 120) NAME: *SYSTEM/PRINT /FONTSUPPORT ON DISK HDR0[00B0] = 0 00120C C0140F RECORD SIZE = 102, LOCATION = 5135, BASE UNIT = 18 0000 0 3F3F0F 00140F BLOCKLENGTH = 120, LOCATION = 5135 0001 0 001000 000000 HDRCYCLE 0, HDRSEGMENTS 1 0002 0 000000 660078 HDRTYPE 0, FLATHDRLENGTH 102, HDRLENGTH 120 0003 0 010E00 1E001E BLOCKSIZE = 270, MINRECSIZE = 30, MAXRECSIZE = 30 0004 0 5B1361 30D3C5 TIMESTAMP (DATE = 93315, TIME = 17 :23:34.6017) 0005 0 700500 2B0020 VERSION = 7, OPT ATTRIB WORDS = 5, DATAAREAIX 43, AVAIL SPACE = 32 0006 0 240100 05002B FIXED SIZE = 36, TITLEIX = 43, TITLESIZE = 5 0007 0 C00000 300000 FILESTRUCTURE = ALIGNED180 (EXPLICITLY SPECIFIED), FILETYPE = 0 FILEORGANIZATION = NOTRESTRICTED, UNITS = WORDS, BITSPERMODE = 48, EXTMODE = SINGLE 0008 0 0F9C00 100028 SAVEFACTOR = 999, CYCLE = 1, VERSION = 0 FILEKIND = 40 (DCALGOLCODE) 0009 0 000000 07FF01 PERMITTED ACTIONS 7FF, SECURITYTYPE
0010 0 5B1274 8B20DA CREATION TIMESTAMP (DATE = 93314, TIME = 20:51:22.4987) 0011 0 5B1274 8B20DB ALTER TIMESTAMP (DATE = 93314, TIME = 20:51:22.4988) 0012 0 5B167A 624BA0 ACCESS TIMESTAMP (DATE = 93318, TIME = 21:54:05.2069) 0013 0 805B12 72911F READ UNIVERSAL TIME (DATE = 93314, TIME = 20:51:22.4899), TIMEZONE = 00 0014 0 835B17 206AEF EXECUTE UNIVERSAL TIME (DATE = 93319, TIME = 5:54:05.2530), TIMEZONE = 03 0015 0 805B12 72911F ATTRIBUTE UNIVERSAL TIME (DATE = 93314, TIME = 20:51:22.4899), TIMEZONE = 00 0016 0 805B12 72911F COPYSOURCE UNIVERSAL TIME (DATE = 93314, TIME = 20:51:22.4899), TIMEZONE = 00 0017 0 805B12 72911F COPYDEST UNIVERSAL TIME (DATE = 93314, TIME = 20:51:22.4899), TIMEZONE = 00 0018 0 805B12 72911F BACKUP UNIVERSAL TIME (DATE = 93314, TIME = 20:51:22.4899), TIMEZONE = 00 0019 0 000000 000000 0020 0 000000 000000 0021 0 000000 000000 0022 0 000000 000000 0023 0 C09000 0001F8 UPDATEDSINCECATBACKUPF, UPDATEDSINCE ARCBACKUPF, CRUNCHED, PERMANENT, ROWSIZE = 504 0024 0 000000 0000B4 SECTORSIZE = 180 0025 0 000002 000000 ROWS = 2, DISK EOFU = 0 0026 0 000000 000336 DISK EOFV = 822 0027 0 000000 000000 0028 0 060000 000000 ACCESSTZ=3, ALTERTZ=0, CREATIONTZ=0 0029 0 000000 000000 0030 0 000000 000000 0031 0 000000 000000 0032 0 000000 000000 0033 0 000000 000000 0034 0 000000 000000 MULTIUSE WORD 000000 000002 000000 000336 000041 040243 ( 5) 000748 B1F6A3 000000 000300 000000 0045A1 020008 290032 000000 000000 ( 10) 000000 000000 000000 000000 010000 A00335 000000 000000 000000 000000 ( 15) 800000 000600 00000F 100325 000000 000000 000005 600331 000000 00008E ( 20) 000000 000000 000000 000000 000000 000000 000000 000000 000000 000000 ( 25) 000000 000000 000000 000000 000000 000000 000000 000000 000000 000000 ( 30) 5B1274 916E55 0003 0 001300 000001 ATTNO=19 (CODE FILE HANDLING),TYPE=FIELD VALUE : 000000 000001 0004 0 000E00 000000 ATTNO=14 (PERMITTED ACTIONS), TYPE=FIELD VALUE : 00000000 (DEC): 0 MEMHDRS[00B0] = 5 800000 6023FD 00 0 000080 000000 OPENCOUNT=2, CONTENDORS=0, HOLDCOUNT=0 01 0 400000 000000 CHANGED, LAST FAMILY INDEX=0, MODE=SHARED 02 0 000000 000000 DRCINFO 03 0 000080 9E0000 PBIT INFO D1 STACK = 4F0, 1 SL REFERENCE 04 0 000000 000000 SHARED BUFF LOCK 05 0 000000 000000 FILE LOCK REGION AT HEAD OF BY HEADER LIST
Example 2
INPUT: HDR 1C5 ATTRIBUTES HDR [001C5] AT C 004E6C700 000000 TITLE = *SYSTEM/ETAIOA/MCP. FILEKIND = MCPCODEFILE VERSION = 0 ALTERDATE = Mon, Feb 9, 2015 16:38:04.86885 AREALENGTH = 1512 AREAS = 100 AREASECTORS = 1512 ATTMODIFYDATE = Tues, Nov 10, 2015 11:29:37.28378 BACKUPDATE = Mon, Feb 9, 2015 16:38:04.86885 BLOCKSIZE = 540 COPYDESTDATE = Tues, Feb 10, 2015 10:12:31.53592 COPYSOURCEDATE = Tues, Jan 5, 2016 10:54:57.63586 CREATIONDATE = Mon, Feb 9, 2015 16:38:04.86885 CRUNCHED = TRUE CYCLE = 1 EXECUTEDATE = Mon, Feb 9, 2015 16:38:04.86885 EXTMODE = SINGLE FILECLASS = RECORDORIENTED FILELENGTH = 4529970 FILEORGANIZATION = NOTRESTRICTED FILESERIALNO = 0 FILESTRUCTURE = ALIGNED180 LICENSEKEY = MAXRECSIZE = 30 MINRECSIZE = 0 PRODUCT = "A-SERIES/MCP/UNASSIGNED". READDATE = Tues, Nov 10, 2015 11:29:39.47512 RELEASEID = "MCP 17.0 [58.150.000] (58.150.0453)". SAVEFACTOR = 999 TIMESTAMP = Mon, Feb 9, 2015 20:15:38.10958 TOTALSECTORS = 151002 VERSION = 0