Display Document (DSPDOC)

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

The Display Document (DSPDOC) command allows you to display a document within a specific folder.

Top

Parameters

Keyword Description Choices Notes
DOC Document Character value, *PRV Optional, Positional 1
FLR Folder Character value, *PRV Optional, Positional 2
ALWPRT Allow printing *YES, *NO Optional, Positional 3
Top

Document (DOC)

Specifies the name of the document to be displayed.

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

Folder (FLR)

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

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

Allow printing (ALWPRT)

Specifies whether the user is able to print a document while viewing it.

*YES
The user can print a document while viewing it.
*NO
The user cannot print a document while viewing it.
Top

Examples

DSPDOC   DOC(MYDOC)  FLR(MYFLR)

This command displays the document MYDOC in folder MYFLR.

Top

Error messages

*ESCAPE Messages

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.
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.
OFC9811
Folder needs to be reclaimed.
Top