Run command The Run command redirects ij processing to read from a specified file. Run command Running a script

The command assumes that the value of the specified String is a valid file name. It reads from that file until it ends or an Exit command is executed. If the end of the file is reached without ij exiting, reading will continue from the previous input source once the end of the file is reached. Files can contain additional Run commands.

ij prints out the statements in the file as it executes them.

Any changes made to the ij environment by the file are visible in the environment when processing resumes.

Syntax RUN String Example ij> run 'setupMenuConn.ij'; ij> -- this is setupMenuConn.ij -- ij displays its contents as it processes file ij> connect 'jdbc:derby:menuDB'; ij> autocommit off; ij> -- this is the end of setupMenuConn.ij -- there is now a connection to menuDB and no autocommit. -- input will now resume from the previous source. ; ij>