Any Env Variable to Suppress Warnings in DS

A forum for discussing DataStage<sup>®</sup> basics. If you're not sure where your question goes, start here.

Moderators: chulett, rschirm, roy

Post Reply
vvsaucse
Participant
Posts: 16
Joined: Thu Aug 27, 2009 11:23 pm
Location: BAngalore

Any Env Variable to Suppress Warnings in DS

Post by vvsaucse »

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,
Last edited by vvsaucse on Tue Jun 07, 2011 9:21 am, edited 1 time in total.
Subbu
TCS BAngalore
MarkB
Premium Member
Premium Member
Posts: 95
Joined: Fri Oct 27, 2006 9:13 am

Post by MarkB »

No need for an ENV variable. Just go to the Limits tab and check 'No Limit' under warnings.
vvsaucse
Participant
Posts: 16
Joined: Thu Aug 27, 2009 11:23 pm
Location: BAngalore

Post by vvsaucse »

@Mark,

Yes, thats a possible option, but this job is triggered from CtrlM via unix scripts. so we cannot do that.... Apologies, i havent' mentioned that in the first place.

Cheers
Subbu.
Subbu
TCS BAngalore
FranklinE
Premium Member
Premium Member
Posts: 739
Joined: Tue Nov 25, 2008 2:19 pm
Location: Malvern, PA

Post by FranklinE »

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:

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}
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.
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
dspxguy
Participant
Posts: 156
Joined: Thu May 24, 2007 4:09 pm
Location: Simi Valley, CA

Re: Any Env Variable to Suppress Warnings in DS

Post by dspxguy »

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
Post Reply