This document covers the following topics:
The File Maintenance Menu is called with the command
MAINTAIN FILE
.
Function | Code | Command |
---|---|---|
Add a file | A | ADD FILE |
Copy file | C | COPY FILE |
Display file | D | DISPLAY FILE |
Modify file | M | MODIFY FILE |
Rename/Renumber file | N | RENAME FILE |
Purge file | P | PURGE FILE |
Edit description of a file | W | EDIT FILE DESCRIPTION |
Edit elements of a file (see Note:) | E | EDIT FILE ELEMENT |
Push backward | B | PUSH FILE |
Link children | L | LINK FILE <active-association-type> |
Edit owners of a file | O | EDIT FILE OWNER |
Select file from a list | S | SELECT FILE |
Modify Adabas attributes | J | MODIFY ADA-ATTR |
Force standard | F | FORCE FILE |
Modify Vista elements | K | MODIFY VISTA-FI |
Edit Subquery of a File | Y | EDIT FILE SUBQUERY |
Note:
The function Edit elements of a file does not appear on the
File Maintenance Menu, but can still be called with function code E.
The command FORCE FILE
is one of the
few maintenance commands that can be executed in batch mode.
Keyword | Field | Position |
---|---|---|
ID | File ID | 1 |
<> | Copy ID | 2 |
Note:
See also Standard
Maintenance Commands .
The File Retrieval Menu is called with RETRIEVE FILE.
Retrieval Type | Code | Default Output Mode | Command |
---|---|---|---|
Files | D | D | DISPLAY FILE |
L | LIST FILE | ||
S | SELECT FILE | ||
D | SHOW FILE | ||
Execute retrieval models | E | T | EXECMODEL FILE |
Dummy/Placeholder files | C | L | DUMMY FILE <passive-association-type> |
Difference of files | A | DIFFERENCE FILE | |
Files with parents | B | D | PARENTS FILE <passive-association-type> |
Files with no parent | O | L | FREE FILE ANY | ALL | <passive-association-type> |
Files with children | T | D | CHILDREN FILE <active-association-type> |
Files with no child | U | L | EMPTY FILE ANY | ALL | <active-association-type> |
Files related to a file | R | L | RELATED FILE |
Keyword | Field | Position |
---|---|---|
ID | File ID | 1 |
PARENT | Contained in DA | 2 |
EXTERNAL | External name | 3 |
RES | Restrictions | 4 |
OUT | Output options | 5 |
TYPE | Files of type | 6 |
FNR | File number | 7 |
MODEL | Model | 8 |
MODE | Output mode | 9 |
See also Standard Retrieval Commands.
Command | Description | ||
---|---|---|---|
DIFFERENCE FILE | Compares files and
displays the differences. The file attributes, the fields and the field
attributes can be compared. The fields are compared using the field ID. If a userview is compared with its master file, however, the fields are compared by two-character Short name. The userview is always taken as first file, irrespective of which file is entered under FIRST-FILE. See the section File in the Predefined Object Types in Predict documentation for more information. |
||
Using DIFFERENCE FILE in Batch Mode | The parameters FIRST-FILE, SECOND-FILE, LIST and FILE-ATTR are mandatory. Each field attribute to be compared must be specified. | ||
Keyword | Field | Position | |
FIRST-FILE; | First file ID | 1 | |
SECOND-FILE; | Second file ID | 2 | |
LIST | List fields | 3 | |
FILE-ATTR | Compare file attributes | 4 | |
ORDER; | the order | 5 | |
EXISTENCE | the existence | 6 | |
COMMENT | abstract | 7 | |
OW; | owner IDs | 8 | |
KEY | keywords | 9 | |
DESC | description | 10 | |
SYNONYM | field name synonyms | 11 | |
STANDARD | standard file | 12 | |
VERIFICATION | verification | 13 | |
ADABAS-SEC | Adabas attributes | 14 | |
FIELD-DEF | field definition | 15 | |
NATURAL | Natural attributes | 16 | |
3GL-SPECIF | specification for 3GL | 17 | |
VSAM | VSAM attributes | 18 | |
Example: Compare file
PDA-7 with file PDA-13 and report the differences of the field's Adabas and
Natural attributes:
DIFFERENCE FILE PDA-7,PDA-13,LIST=D,N,ADABAS-SEC=X,,X Note: |
|||
RELATED FILE<file-ID> |
Lists the following types of objects:
For physical VSAM files the related logical VSAM files are also listed; for IMS segments the IMS segment layouts are also listed. |
The File Active Retrieval Menu is called with ACTIVE
FILE
.
Retrieval Type | Code | Default Output Mode | Command |
---|---|---|---|
Files | see File Retrieval | ||
Files ref. by members | R | L | REFERENCED FILE |
C | COUNT FILE | ||
Files inconsistently used | U | L | UNUSED FILE |
Files not documented | O | L | UNDEFINED FILE |
Files accessed via dyn. SQL | V | L | DYNAMIC FILE |
Keyword | Field | Position |
---|---|---|
ID | File ID | 1 |
PARENT | Contained in DA | 2 |
RES | Restrictions | 3 |
OUT | Output options | 4 |
TYPE | Files of type | 5 |
FNR | File number | 6 |
USE | Usage | 7 |
MASTER | For master files | 8 |
SET | Save set | 9 |
MODE | Output mode | not applicable |
The Administration Implemented File menu is called with ADMINISTRATE FILE.
Function | Code | Command |
---|---|---|
Disconnect implementation | C | DISCONNECT FDT |
DISCONNECT DDM | ||
DISCONNECT NDB | ||
DISCONNECT TABLE | ||
DISCONNECT ESQ | ||
DISCONNECT SN-FILE | ||
DISCONNECT NSC-FILE | ||
Display implementation | D | DISPLAY ADACMP |
DISPLAY ADAINV | ||
DISPLAY ADASCR | ||
DISPLAY ADAVSAM | ||
DISPLAY BAL | ||
DISPLAY COBOL | ||
DISPLAY DDM | ||
DISPLAY ESQ | ||
DISPLAY FDT | ||
DISPLAY FORTRAN | ||
DISPLAY LANG-C | ||
DISPLAY PLI | ||
DISPLAY RULE | ||
DISPLAY TABLE | ||
Rename implementation | N | RENAME ADACMP |
RENAME ADAINV | ||
RENAME ADASCR | ||
RENAME ADAVSAM | ||
RENAME BAL | ||
RENAME COBOL | ||
RENAME FORTRAN | ||
RENAME LANG-C | ||
RENAME PLI | ||
RENAME TABLE | ||
Purge implementation | P | PURGE ADACMP |
PURGE ADAINV | ||
PURGE ADASCR | ||
PURGE ADAVSAM | ||
PURGE BAL | ||
PURGE COBOL | ||
PURGE ESQ | ||
PURGE FDT | ||
PURGE FORTRAN | ||
PURGE LANG-C | ||
PURGE NDB | ||
PURGE NSC-FILE | ||
PURGE PLI | ||
PURGE SN-FILE | ||
PURGE TABLE | ||
Refresh file | R | REFRESH FDT |
REFRESH TABLE | ||
Select implementation | S | SELECT ADACMP |
SELECT ADAINV | ||
SELECT ADASCR | ||
SELECT ADAVSAM | ||
SELECT BAL | ||
SELECT COBOL | ||
SELECT DDM | ||
SELECT ESQ | ||
SELECT FDT | ||
SELECT FORTRAN | ||
SELECT LANG-C | ||
SELECT NDB | ||
SELECT NSC-FILE | ||
SELECT PLI | ||
SELECT RULE | ||
SELECT SN-FILE | ||
SELECT TABLE |
Keyword | Field | Position |
---|---|---|
ID | File ID | 1 |
PARENT | Contained in DA | 2 |
EXTERNAL | External name | 3 |
MEM | Member | 4 |
LIB | Library | 5 |
MODIFIED | Only modified | 6 |
RES | Restrictions | 7 |
TYPE | Files of type | 8 |
FNR | File number | 9 |
PFNR | Phys Fnr | 10 |
PDBNR | Phys DBnr | 11 |
See Standard Administration Commands.