Release the NEW Power of CL

Release the NEW Power of CL

Name:

Email:

Profile Manager

Stop spending time and money reinstating user profiles!

Try Profile Manager Today!

30 DAY FREE TRIAL

Learn More

Programming Services

Do you need a program written?

Bruce Vining Services can provide highly experienced IBM i developers to supplement your staff with short term contracts. If you are looking for custom solutions involving system functions such as communications, database, security, encryption, print, and work management you will find your answers at Bruce Vining Services.

PDF Print E-mail

Work with Open Files using CLF (WRKOPNFCLF)

Where allowed to run: All environments (*ALL)
Threadsafe: No
Parameters
Examples
Error messages

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.
Top

Parameters

KeywordDescriptionChoicesNotes
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
Top

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.
Top

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.
Top

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.
Top

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.
Top

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.

Top

Error messages for WRKOPNFCLF

*ESCAPE Messages

VC2505F
There are no CLF files open in this activation group that meet the selection criteria.
Top
 
Joomla 1.5 Templates by Joomlashack