This code is working fine. It backups the dataset to target DS. How to specify a volume serial in the control card to backup the DS in the specified volume. Please help.
And what has this to do with JCL? There is not one line of JCL in your posted code.
And the answer to your query is: if the manual does not say then you cannot. But you can specify volser and unit in your JCL on the DD statement for your backup.
As Nic mentioned, it the manual does not provide the directions, it is probably not available.
Most organizations do not permit users to specify a particular volser. Why does someone believe this process needs to write to a specific volume?
Does the utility permit specifying a DD name for the target dataset? If so, and your system permits, you could insert a DD that points to the volume you want to use.
Keep in mind if you specify a particular volume and it is full, the job will abend - and i really prefer NOT having backups abend. Why not write the backup to extended cart or virtual tape (v-tape)?