Work with Open Files using CLF (WRKOPNFCLF)
The Work with Open Files using CLF (WRKOPNFCLF) command shows a list of files that are currently open by CLF within your job and current activation group. From this display you can close files and display file descriptions.
Restrictions:
- This command is provided with a public authority of *EXCLUDE
- This command is not threadsafe.
| Keyword | Description | Choices | Notes |
| FILEID |
File identifier |
Generic name, name, *ALL |
Optional |
| FILE |
File |
Generic name, name, *ALL |
Optional |
| OPNPGM |
Program opening file |
Generic name, name, *ALL |
Optional |
| ACTGRP |
Activation group |
Character value, *CURACTGRP |
Optional |
File identifier (FILEID)
Specifies the file IDs to be shown on the Work with Open Files display.
- *ALL
- All file IDs are shown.
- generic-name
- Specify the generic name of the file IDs to be shown. A generic name is a character string that contains one or more characters followed by an asterisk (*). If a generic name is specified, all file IDs that have names with the same prefex as the generic name are shown.
- name
- Specify the name of the file ID to be shown.
File (FILE)
Specifies the files to be shown on the Work with Open Files display.
- *ALL
- All files are shown.
- generic-name
- Specify the generic name of the files to be shown. A generic name is a character string that contains one or more characters followed by an asterisk (*). If a generic name is specified, all files that have names with the same prefex as the generic name are shown.
- name
- Specify the name of the file to be shown.
Program opening file (OPNPGM)
Specifies the names of the programs that initially opened a file using OPNFCLF and should be displayed on the Work with Open Files display.
- *ALL
- All programs are shown.
- generic-name
- Specify the generic name of the programs to be shown. A generic name is a character string that contains one or more characters followed by an asterisk (*). If a generic name is specified, all programs that have names with the same prefex as the generic name are shown.
- name
- Specify the name of the program to be shown.
Activation group (ACTGRP)
Specifies the activation group that open files should be shown from on the Work with Open Files display.
- *CURACTGRP
- Display the open files associated with the current activation group.
- character-value
- The only supported value at this time is *CURACTGRP.
Examples for WRKOPNFCLF
Example 1: Displaying all Open Files
WrkOpnFCLF
This command displays all files opened using OPNFCLF in the current activation group.
Example 2: Displaying all Open Files that start with VC2E
WrkOpnFCLF File(VC2E*)
This command displays all files opened using OPNFCLF, in the current activation group, that start with the characters VC2E.
Error messages for WRKOPNFCLF
*ESCAPE Messages
- VC2505F
- There are no CLF files open in this activation group that meet the selection criteria.
|