How to handle sub folders created automatically when submit multiple jobs from PWD

i will try to explain the scenario in simple.

cd /home/jobfolder
ls
test.def

now submitting 4 jobs
/home/jobfolder# qsub…command // 4 times

4 jobs with different ID’s created and sub directories are created as well with the following structure.
jobname_001.dir, jobname_002.dir and …
now how can we change this sub folder 001.dir/002.dir names with corresponding jobid ?

You can customise your script to your requirements

cat pbs.job

#!/bin/bash
#PBS -N myjob
echo $PBS_JOBID
mkdir myjob_$PBS_JOBID
env > myjob_$PBS_JOBID/env.txt

Hope this helps