You can save SQL commands to an external file or load SQL commands into the command window from external file.
Related topic:
Using JSQL