Create Document (CRTDOC)
The Create Document (CRTDOC) command allows you to create a new document when using OfficeVision/400.
First the Create Document Details display is shown. Then, if the Enter key is pressed on this display, the Edit display is shown.
| Keyword |
Description |
Choices |
Notes |
| DOC |
Document |
Character value |
Required, Positional 1 |
| FLR |
Folder |
Character value, *PRV |
Optional, Positional 2 |
| TXTPRF |
Text profile |
Name, *DFT, *SYSTEM |
Optional, Positional 3 |
| TEXT |
Document description |
Character value, *DFT |
Optional, Positional 4 |
| DETAILS |
Document details |
*YES, *NO |
Optional, Positional 5 |
| EDIT |
Edit document |
*YES, *NO |
Optional, Positional 6 |
| EXITPNL |
Display exit panel |
*YES, *NO |
Optional, Positional 7 |
Document (DOC)
Specifies the name of the document to be created. A maximum of 12 characters can be specified in the required format (document.ext).
This is a required parameter.
Folder (FLR)
Specifies the name of the folder that will contain the document being created.
-
- *PRV
- The name of the folder used in your last session will contain the document.
- folder-name
- Specify the name of the folder that will contain the document being created.
Text profile (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.
Document description (TEXT)
Specifies the document description.
-
- *DFT
- A default description is specified for the document.
- description
- Specify a maximum of 44 characters, enclosed in apostrophes.
Document details (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 document (EDIT)
Species whether document editing is bypassed.
-
- *YES
- The document is edited after being created.
- *NO
- The document is not edited after being created.
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.
CRTDOC DOC(NEWDOC) FLR(MYFLR)
This command creates a new document called NEWDOC in folder MYFLR.
*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.