The Basic Script
All of the blocks in a PDS script are optional except two. Each PDS script requires the following blocks:
| 1. | A basic PDS script consists of a job block. This begins with the line job jobname, where jobname is the name of your PDS job, and ends with end job. More advanced scripts can contain multiple job blocks which are run serially by default. |
| 2. | The other required block is the task block which is in the job block, and begins with task taskcount and ends with end. |
Our simplejob.pds script from the previous section, contains these two required blocks:
#From the last section
job simplejob
task 10
log "hello, world"
end
end job
A few other points to mention about PDS scripts. First, PDS is case-sensitive. Also, in PDS, whitespace is not significant. In fact, you can include multiple statements on one line, or even write an entire PDS script on a single line, although it’s easier to read with a statement per line. And any text after a ‘#’sign on a line iss ignored, and can be used as a comment, as shown above.
Note that each of the remaining blocks we discuss typically begin with the name of the block and end simply with an end.