All batch hosts have folders created to store data while working with batch-job. There is an environment variable TMPDIR which is being set each time on job start and is evaluated to a directory used by that job to store its data.
AFS system info (/afs) is available, but scratch directories are not, those that are common for all the interactive hosts lxpubXX.jinr.ru , XX=01,02,03,04,05
Therefore the scratch directory data (/scrc/u/) should be copied to batch hosts.
The sequence of command in a pbs_ script file should look like this:
cd $TMPDIR
scp lxpub01://scrc/u/$USER/progs/myprog myprog
scp lxpub01://scrc/u/$USER/mydata/file.in file.in
./myprog < file.in >file.out
scp file.out lxpub01://scrc/u/$USER/mydata/file.out
To handle the data located in dCache storage system one has to use the remote data access tools.
See ‘dCache Instructions‘