When you specify a copybook, you can make whatever changes are needed to successfully implement the host transaction and to create a client operation. You specify copybooks using the new Host Transaction wizard, or if you are modifying already specified copybooks, the Import Copybook wizard. At the completion of each wizard, the Copybook Editor displays the selected copybook source.
If you import more than one copybook, the copybooks are concatenated in the sequence in which they were chosen in the Import dialog box. If you imported one copybook, a copy of the selected copybook is displayed in the editor.
Copybook files are held in a temporary directory during editing,
<user_home>\Attachmate\Verastream\TransactionStudio\workspace\<project_name>\tmpmerged. When the project is saved all copybooks are copied to their final location. If the project is not saved, the temporary files are removed.
To bring up a blank Copybook Editor, specify a new Host Transaction and skip the Import Copybook step. A blank Copybook Editor opens.
If you specified separate copybooks for input and output, a separate editor opens for each of the copybooks. Click the tab with the appropriate name to toggle between them.
Any errors that occur are immediately shown within the editor. See Editing Copybooks with Syntax Errors for more information.
When you synchronize the copybook, the modified copybook is imported into the studio project and the host transaction and client operation are updated accordingly. If you have separate input and output copybooks, the synchronizing function uses the contents of both to update the host transaction and client operation.
Always save the modified copybook through the main project. You can view the host transaction or client operation editors during the copybook editing process, but the updated copybook information will not be reflected until you synchronize. Changes made to the host transaction or client operation are not visible in the copybook.
|Editing Copybooks with Syntax Errors|
|About COBOL Copybooks|
|Declare a Host Transaction|