Data Definition Language (DDL) Reference Manual

DDL Compiler Commands
Data Definition Language (DDL) Reference Manual529431-004
9-54
EDIT
When you stop an EDIT process by issuing the EXIT command, control returns to the
DDL compiler.
You must close any source code file before editing it. For instance, if you have opened
a COBOL source code file, entered some text in this file, and then want to view it with
the text editor, you must issue the NOCOBOL command before you issue the EDIT
command.
When you specify edit-file-name in the EDIT command, the DDL compiler
passes that name to the current EDIT process and also stores the name. If you omit
edit-file-name from the next EDIT command in the same session, the DDL
compiler passes the stored name to the new EDIT process.
When you specify edit-parameter in the EDIT command, the DDL compiler
passes that parameter to the EDIT process. The DDL compiler also stores the
parameter.
If you omit edit-file-name from the next EDIT command, the DDL compiler
passes any parameter saved from the last EDIT command to the new EDIT process.
If you specify edit-file-name in the next EDIT command, the DDL compiler
discards any previously stored parameter.
Example 9-23. EDIT Command (page 1 of 2)
33>DDL DICT
!?DDL ddlfil
Open DDLFIL.
!RECORD sum.
Add a record.
...
!?NODDL
Close DDLFIL.
!?EDIT ddlfil; LIST ALL
Start an EDIT process, list DDLFIL.
CURRENT FILE IS $DATA.PARTS.DDLFIL
1 Record SUM.
2 File is $DATA.SALES.SUM Unstructured
3 Def is SUM-DEF.
4 End
* FIX 3
Fix a record.
3 Def is SUM-DEF.
iR
3 Def is RSUM-DEF.
cr
* EXIT
!?SOURCE ddlfil
Add the record to the dictionary.
!?EDIT
Use the previous file and parameter.
CURRENT FILE IS $DATA.PARTS.DDLFIL
1 Record SUM.
2 File is $DATA.SALES.SUM Unstructured
3 Def is RSUM-DEF.
4 End