CRTDOC (Create Document)
Purpose
The Create Document (CRTDOC) command allows the user to create a new document when using the word processing function of OfficeVision.
First the Create Document Details display is shown. Then, if the Enter key is pressed on this display, the Edit display is shown.
More information on creating documents is in the Use OfficeVision/400 Word Processing book.
Required Parameters
- DOC
- Specifies the name of the document being created. Specify the name of the document. Up to 12 characters can be specified in the required format (document.ext).
Optional Parameters
- FLR
- Specifies the name of the folder to contain the document being created.
*PRV: The name used in the previous session is used.
folder-name: Specify the name of the folder to contain the document being created.
- TXTPRF
- Specifies the text profile used as the base for the document.
*DFT: The default text profile is used.
*SYSTEM: The system text profile is used.
profile-name: Specify the name of the text profile to use. A maximum of 12 characters can be specified.
- TEXT
- Specifies the text that briefly describes the document description. More information on this parameter is in Commonly used parameters.
*DFT: A default description is specified for the document.
description: Specify a maximum of 44 characters, enclosed in apostrophes.
- DETAILS
- Specifies whether to request or bypass the Document Details display.
*YES: The Document Details display is shown.
*NO: The Document Details display is not shown.
- EDIT
- Specifies whether document editing is bypassed.
*YES: The document is edited after being created.
*NO: The document is not edited after being created.
- 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.
Example for CRTDOC
CRTDOC DOC(NEWDOC) FLR(MYFLR)This command creates a new document called NEWDOC in folder MYFLR.
Error messages for CRTDOC
*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.
- OFC800E
- &1 already exists as document or folder.
- OFC800F
- Display does not support text.
- OFC8006
- Folder not found.
- OFC8008
- Request not allowed with folder.
- OFC801D
- Maximum number of text sessions active.
- OFC801E
- DW editor or text assist cannot be loaded.
- OFC8017
- Folder directory is full.
- OFC8019
- Required module not on system.
- OFC802E
- Request failed for PC editor.
- OFC821B
- Document &1 needs to be reclaimed.
- OFC9811
- Folder needs to be reclaimed.