PROCEDURE NAME procedure block
Edit the source
Positions the cursor at the start of the relevant block in the source.
Rename
Opens an input field that lets you modify the procedure's name.
Create a procedure
Opens a submenu that lets you set the position of the new procedure, relative to the current procedure:
Before,
After.
When a procedure is created, the DECLARATION block will be generated automatically.
Define the type
For VADELIA, WADELIA, MADELIA programs:
Initially opens a submenu that lets you select the procedure type:
Client,
Common,
Server.
When the Client type is selected, and programs are batch VADELIA programs, another submenu is used to determine the procedure type: Private (procedure visible only within the current program) or Public (external procedure that can be called by another program).
When the Server type is selected, another submenu presents the list of logical servers. For each logical server, a submenu is used to select a Normal or Exception server procedure.
Note: there can only be one exception server procedure per logical server.
For SADELIA programs:
Initially opens a submenu used to select the procedure type:
Private,
Public.
When Private is selected, another submenu is used to determine the procedure type: Normal or Exception. There can only be one Exception procedure.
Note: Exception procedures only concern AS/400 server parts (*PSSR procedure).
Cut
Copies the block, source and any sub-branches to the clipboard, and deletes them from the document.
Copy
Copies the block, source and any sub-branches to the clipboard.
Paste
Pastes the block from the clipboard after the current block. The corresponding source will be copied to the source view.
Delete
Deletes the block, any branches and the associated source.