Tutorial > Creating PV-WAVE Applications > Creating and Using Batch Files
  

Creating and Using Batch Files
Unlike PV‑WAVE program files, batch files are interpreted as though they were entered from the keyboard. In other words, each line of a batch file is independently compiled and executed before proceeding to the next line. Batch files can be created with any text editor or with the PV‑WAVE JOURNAL facility. As you will see, batch files are executed from the WAVE> prompt with the @ command.
Using JOURNAL to Save Commands
The JOURNAL procedure enables you to save to a file all the text you enter at the PV‑WAVE prompt. You can use this command to create a file that contains a record of an interactive PV‑WAVE session. In this way, you can create a complete description of your PV‑WAVE session. These recorded commands constitute a batch file that can then be run to “replay” the session.
Files created by using the JOURNAL command will, like any batch file, be executed a line at a time, as opposed to programs, which are first compiled in their entirety by PV‑WAVE, then run as a complete program.
The syntax for the JOURNAL command is:
JOURNAL, 'filename'
where filename is the name of the journal file to be created.
If no filename is specified, the JOURNAL file is named wavesave.pro. To close the journal file, enter JOURNAL again or exit PV‑WAVE.
 

Version 2017.1
Copyright © 2019, Rogue Wave Software, Inc. All Rights Reserved.