if I only know a jobname , how can I know which project it belongs to using UV command?
Thanks
uv command
Moderators: chulett, rschirm, roy
or create shell looping for each $PROJNAME found using dsjob -lprojects,
#### $JOBNAME is your job
#### define a $LOGFILE
cd ${DSHOME}
bin/uvsh >${LOGFILE} 2>&1 << EOF
LOGTO ${PROJNAME}
LIST DS_JOBS WITH NAME=${JOBNAME}
QUIT
EOF
cd
echo " " ${PROJNAME} " ${JOBNAME} " `cat ${LOGFILE} | grep -i category | sed s/Category....
//g`
The project that returns a category is the you're looking for.
Anyway this is the general idea, you can play with this to get the desired output
#### $JOBNAME is your job
#### define a $LOGFILE
cd ${DSHOME}
bin/uvsh >${LOGFILE} 2>&1 << EOF
LOGTO ${PROJNAME}
LIST DS_JOBS WITH NAME=${JOBNAME}
QUIT
EOF
cd
echo " " ${PROJNAME} " ${JOBNAME} " `cat ${LOGFILE} | grep -i category | sed s/Category....
//g`
The project that returns a category is the you're looking for.
Anyway this is the general idea, you can play with this to get the desired output