In the CL you can use the RTVJOBA command.
You can pull in values like
try using these vaiables to create a unique directory
<pre>DCL &JobNbr *CHAR 6
RTVJOBA NBR( &JobNbr )
Those should create a subdirectory in the job’s current directory. The new subdirectory would be named 123456 if the job number was “123456″.
If you want it created as a subdirectory of, say, /home/MYDIR, then perhaps:
<pre>DCL &Path *CHAR 128 VALUE( ‘/home/MYDIR’ )
CHGVAR &Path ( &Path *tcat ‘/’ *cat &JobNbr )</pre>
Of course, you need variables long enough to hold the length of the paths you create.
MD is an alias for MKDIR. MKDIR is an alias for CRTDIR.
There are lots of alternative methods. Be aware that IFS names can include blanks. When names include trailing blanks, it can sometimes take some thinking to figure out why they’re tricky to delete.