The Basic Script
All of the blocks in a PDS script are optional except two. Each PDS script requires the following blocks:
-
A basic PDS script consists of a
jobblock. This begins with the linejobjobname, where jobname is the name of your PDS job, and ends withend job. More advanced scripts can contain multiplejobblocks which are run serially by default. -
The other required block is the
taskblock which is in thejobblock, and begins withtasktaskcount and ends withend.
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.
Related information