Edit Document (EDTDOC)

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

The Edit Document (EDTDOC) command allows you to edit a document.

Top

Parameters

Keyword Description Choices Notes
DOC Document Character value, *PRV Optional, Positional 1
FLR Folder Character value, *PRV Optional, Positional 2
EXITPNL Display exit panel *YES, *NO Optional, Positional 3
Top

Document (DOC)

Specifies the name of the document to be edited.

*PRV
The name used in the previous session is used.
document-name
Specify the name of the document to be edited.
Top

Folder (FLR)

Specifies the name of the folder that contains the document to be edited.

*PRV
The name used in the previous session is used.
folder-name
Specify the name of the folder that contains the document to be edited.
Top

Display exit panel (EXITPNL)

Specifies whether the Exit Document display is shown when F3(Exit) or F12(Cancel) is pressed to end the editing.

*YES
The Exit Document display is shown when F3(Exit) or F12(Cancel) is pressed to end the editing.
*NO
The Exit Document display is not shown when F3(Exit) or F12(Cancel) is pressed to end the editing.
Top

Examples

EDTDOC   DOC(TASK4)  FLR(INSTTXT)

This command displays the document TASK4 of the folder INSTTXT, and allows you to edit the document TASK4.

Top

Error messages

*ESCAPE Messages

OFCFFFC
User storage capacity exceeded.
OFCFFFD
Damaged object found.
OFC8EA3
OfficeVision for AS/400 editor is not available to resolve to a display.
OFC80B5
OfficeVision for OS/400 editor is not available on the system.
OFC800A
Folder is in use.
OFC800B
Document &1 is in use.
OFC800F
Display does not support text.
OFC8006
Folder not found.
OFC8007
Document &1 not found in folder.
OFC8008
Request not allowed with folder.
OFC8009
Request not allowed with document &1.
OFC801A
Document has been saved to diskette, tape or save file.
OFC801D
Maximum number of text sessions active.
OFC801E
DW editor or text assist cannot be loaded.
OFC8010
Document &1 cannot be processed.
OFC8011
Document &1 needs to be recovered.
OFC8016
Document &1 is checked out.
OFC8018
Document &1 is empty.
OFC8019
Required module not on system.
OFC802E
Request failed for PC editor.
OFC821B
Document &1 needs to be reclaimed.
OFC8951
Data name must be specified.
OFC8952
Type must be &9 or &10.
OFC8953
Data &9 does not exist.
OFC8954
Display terminal does not have graphics ability.
OFC8955
PC Text-assist function required to view image.
OFC903A
Document &1 is final form.
OFC9811
Folder needs to be reclaimed.
Top