PDP Copy-Proc enables you to process an active editor file which is a COBOL copy procedure. When you save an element back to the OS 2200 host, Eclipse gives you an option to process the active editor file. You can use this feature on the Unisys Common Editor (text editor).
You can process an active editor in the following ways:
Automatic: Go to Window > Preferences > General > Editors > Text Editors > UDT Preference Page and select the Check for PDP Copy Proc after save check box. This enables you to process the Unisys Common Editor every time it is saved. With every save on the Unisys Common Editor which is a COBOL copy procedure, the PDP Copy Proc dialog box appears.
Manual:
Click OS
2200 > PDP Copy Proc. Alternatively,
you can click
from the tool bar menu. A
PDP Copy Proc dialog box appears.
In the PDP Copy Proc dialog box (both automatic and manual methods), you can modify the command options and specify the file name where the copy procedure will be processed.
Note: By default, the text box in the PDP Copy Proc dialog box is prefilled with the command @PDP,UC and the OS 2200 file path of the active editor.
If the editor is not a COBOL procedure, Eclipse prompts if you still want to continue. Click Yes to continue to process the active editor.
If the editor is dirty, Eclipse prompts you to save the editor. If you do not save, then the last saved version on the OS 2200 system is processed.
In the background, the command is sent to the host of the active editor and executed. When the output is generated, it is displayed in a view developed for this feature. This view is refreshed with each element that is processed. The data of the previously processed copy-procs is not maintained.
Notes: Only files that contain ‘~ PROC’ and ‘~ END’ (where ~ is a space) are considered as COBOL procedures. For files without these words, PDP can be done by the manual method.