Hello,
My job aborts after 50 Warnings, as per the scheduled default limit, is there an alternative approach, to avoid this, perhaps like addition of an Env Variable, which ignores the same and continues execution even after 50 Warnings? I cannot run the job individually from Director since its triggered from Ctrl M.
Cheers
Subbu,
Any Env Variable to Suppress Warnings in DS
Moderators: chulett, rschirm, roy
Any Env Variable to Suppress Warnings in DS
Last edited by vvsaucse on Tue Jun 07, 2011 9:21 am, edited 1 time in total.
Subbu
TCS BAngalore
TCS BAngalore
Here is a sample of what we use in the script called by Control-M. It is taken out of context of the whole script with details replaced:
Refer to the manual for dsjob. The uppercase "-P" is used to carry other parameters from the CM command line, order date being the most common, and in this usage can repeat as many times as you have parameters you need to pass.
Code: Select all
CM Command line: DS_ccc_dsjob_run.ksh -d aaa -e bbb -g ccc -p ddd -j %%JOBNAME
# Input Parameters: -d <IT Subdivision name>. Required Argument.
# -e <DS Environment>. Required Argument.
# -g <UNIX Group>. Required Argument.
# -p <DS Project Short name>. Required Argument.
# -j <DS job or sequence name>. Required Argument
# -i <ssi file / app_job identifier>. Optional. Example: XXX_myjob1
# -w <Warning limit>. Optional, defaults to 50 warnings.
# -r <Row limit>. Optional, defaults to no limit.
# -R Optional, reset jobs.
###
# process input parameters.
###
while getopts d:e:g:p:j:w:r:Rh param
do
case ${param} in
d) ITDIV=${OPTARG};;
e) PRJENV=${OPTARG};;
g) PRJGRP=${OPTARG};;
p) PRJNAME=${OPTARG};;
j) DSSEQNAME=${OPTARG};;
w) WARN_LIMIT="-warn ${OPTARG}";;
r) ROWS_LIMIT="-rows ${OPTARG}";;
P) PARAMSTRING="${PARAMSTRING} -param ${OPTARG} ";;
R) J_RESET=1;;
h) Usage; exit 0;;
\?) Usage; exit 8;;
esac
done
${DSHOME}/bin/dsjob ${G_DS_PORT_NUMBER} -run -jobstatus ${WARN_LIMIT} ${ROWS_LIMIT} ${PARAMSTRING} ${G_DS_PROJ_NAME} ${DSSEQNAME}
Franklin Evans
"Shared pain is lessened, shared joy increased. Thus do we refute entropy." -- Spider Robinson
Using mainframe data FAQ: viewtopic.php?t=143596 Using CFF FAQ: viewtopic.php?t=157872
"Shared pain is lessened, shared joy increased. Thus do we refute entropy." -- Spider Robinson
Using mainframe data FAQ: viewtopic.php?t=143596 Using CFF FAQ: viewtopic.php?t=157872
Re: Any Env Variable to Suppress Warnings in DS
vvsaucse wrote:Hello,
My job aborts after 50 Warnings, as per the scheduled default limit, is there an alternative approach, to avoid this, perhaps like addition of an Env Variable, which ignores the same and continues execution even after 50 Warnings? I cannot run the job individually from Director since its triggered from Ctrl M.
Cheers
Subbu,
Code: Select all
dsjob -run -warn 0