Work with Documents (WRKDOC)

Where allowed to run: Interactive environments (*INTERACT *IPGM *IREXX *EXEC)
Threadsafe: No
Parameters
Examples
Error messages

The Work with Documents (WRKDOC) command is a request to show the Work With Documents In Folders display or the Work With Non-text Document Data display.

From the Work With Documents In Folders display, you can select options to create, revise, copy, delete, view, print, rename, describe, print with options, send, check spelling, file document remotely, paginate, and work with document authority.

From the Work With Non-text Document Data display, you can select an option to copy, delete, and rename non-text data, such as graphs and images.

Top

Parameters

Keyword Description Choices Notes
DOC Document *ALL, *NONTXTDTA Optional, Positional 1
FLR Folder Character value, *PRV, *SELECT Optional, Positional 2
Top

Document (DOC)

Specifies which display to show.

*ALL
The Work With Documents In Folders display is shown.
*NONTXTDTA
The Work With Non-text Document Data display is shown. On this display, you can work with non-text data such as graphs or images.
Top

Folder (FLR)

Specifies the name of the folder to be used on the Work With Documents In Folders display or Work With Non-text Document Data display.

*PRV
The name of the folder from your last session is used.
*SELECT
A list of folders is displayed from which you can select a folder.
folder-name
Specify the name of the folder you want to work with on the specified display.
Top

Examples

WRKDOC   DOC(*ALL)  FLR(*SELECT)

This command displays the Work with Documents panel, and shows a list of folders from which to select the working folder.

Top

Error messages

*ESCAPE Messages

CPF90A8
*SECADM special authority required to do requested operation.
CPF9024
System cannot get correct record to finish operation.
CPF9845
Error occurred while opening file &1.
CPF9846
Error while processing file &1 in library &2.
CPF9847
Error occurred while closing file &1 in library &2.
CPF9847
Error occurred while closing file &1 in library &2.
Top