To create a new procedure, choose File→ New from the menu bar. OpenEdge creates a new buffer in the Procedure Editor and makes the new buffer the current buffer. The Procedure Editor adds the new buffer to the buffer list, labels it “Untitled,” and assigns it a number. To use this new buffer to write an ABL procedure, enter code and choose the Save As option to name and store the procedure.
Note: The Procedure Editor does not allow you to create a file with a comma in its name.
Opening a procedure
To open an existing procedure file:
1. Choose File→ Open.
2. Select the filename from the Open dialog box, then choose OK.
The Procedure Editor cannot open a file with a comma in its name.
The Procedure Editor creates a new buffer, reads the file into it, makes it the current buffer, and labels it with the name of the file. You can open multiple buffers in the Procedure Editor, but you cannot open more than one buffer at a time for the same operating system file. The number of buffers is limited by system memory. You can access other buffers from the Buffer menu. For more information on the Buffer menu, see Chapter 4, “Procedure Editor Reference.”
The maximum buffer size you can open in the Procedure Editor is the lesser of the following:
32,767*bytesPerLine, where bytesPerLine is the width of your terminal
Available system resources
Saving a procedure
You can save the contents of the current buffer by:
1. From the menu bar, choose File→ Save or File→ Save As. The Save As dialog box appears. See Chapter 4, “Procedure Editor Reference” for a detailed description of the Save As dialog box fields:
2. Specify the file where you want to save the procedure.
When you enter a filename, add the .p extension to the procedure file. Procedures are stored as operating system files. UNIX filenames are case-sensitive, unlike Windows filenames. Unless you specify a path when you name the file, OpenEdge stores the file in your current working directory.
Caution: Do not name a procedure _edit.p, because that is the name of the Procedure Editor. If you do, and the procedure falls before $DLC in your PROPATH, OpenEdge accesses the incorrect file when you try to run the Procedure Editor.
OpenEdge saves the procedure to the specified filename and keeps the buffer open so you can continue working in it. The buffer name changes to the specified filename.
The Procedure Editor cannot save a file with a comma in its name.
Saving a procedure to the current file
When you are in a named buffer and you choose File→ Save, OpenEdge automatically saves the procedure to the current filename and keeps the buffer open so you can keep working in it.
Printing a procedure
To print the contents of the current buffer, choose File→ Print. OpenEdge sends the current buffer contents to your computer system’s default printer. There are no print format options.
Closing a procedure
To close a procedure, choose File→ Close. The Procedure Editor closes the current buffer. If you make changes to the current buffer, OpenEdge prompts you to save the changes before it deletes the buffer. If the buffer is untitled and you choose to save it, OpenEdge displays the Save As dialog box. Specify the filename and choose OK to save the procedure.