Hello,
I am trying to delete three work datasets after the job is done. I placed this command statement in the After-Job subroutine of the parallel job:
$orchadmin rm #$TEMP_FILES_DIR#dset_BB_USERS_aft.ds; $orchadmin rm #$TEMP_FILES_DIR#dset_BB_USERS_bef.ds; $orchadmin rm #$TEMP_FILES_DIR#dset_BB_USERS_ccap.ds
The command gets executed but only the descriptor gets deleted. The data files connected to the descriptor remain on the node directories specified in the config file.
What am I doing wrong?
Thanks
Marco
ExecSH to remove dataset in After-Job subroutine
Moderators: chulett, rschirm, roy
-
- Premium Member
- Posts: 43
- Joined: Tue Sep 09, 2008 1:56 pm
ExecSH to remove dataset in After-Job subroutine
ASU Developer
Path issue. $orchadmin is getting substituted by null so Unix is executing "rm #$TEMP_FILES_DIR#dset_BB_USERS_aft.ds" and deleting the descriptor file.
In order to fix this issue:
a) You can create a Unix script and invoke it in "After job subroutine." See steps in technote.
Or
b) Give complete path to orchadmin. i.e.
In order to fix this issue:
a) You can create a Unix script and invoke it in "After job subroutine." See steps in technote.
Or
b) Give complete path to orchadmin. i.e.
Code: Select all
$APT_ORCHHOME/bin/orchadmin rm #$TEMP_FILES_DIR#dset_BB_USERS_aft.ds
-
- Premium Member
- Posts: 43
- Joined: Tue Sep 09, 2008 1:56 pm
-
- Premium Member
- Posts: 43
- Joined: Tue Sep 09, 2008 1:56 pm