Image not found Collapse All | Expand All | Show Default


DSJobReportDb
DataStage Job Report
Generated 2005-02-15 08:26:49pm

 - Job Design  

Image not found

 - Job Information  

 - Job Properties (7) 

Property Value
Object Type Server 
Full Description Job: DSJobReportDb
=================================================================
Description:
This job will get row counts for all jobs in a sequence.
Uses dsjob -report in a before routine. Originally it was based on DSJobReport
downloaded from ADN. There are lots of changes to the original.

1. All XML is validated.
2. The XML had to be split into 3 parts.
a. Because JobStats does not have any repeatable fields.
b. Because RowStats and ParamStats are in different repeatable groups.
3. Transformer added for RowStats and ParamStats to validate that there was data
a. XML plugin gave square root of negative number errors otherwise
b. XML also gave divide by zero errors.
c. XML errors crashed the job
4. dsjob -report does as a before routine instead of filter
a. Because filter was unstable crashed too much
b. store XML history in files like jobName.xml
5. Added driver job
a. To run as last job in sequence.
b. To run all jobs
c. To run one job
d. To trap multiple instance jobs (need to run as job.invocationid)

The hash files store the last run values.
=================================================================
Parameters:
1. TargetDSN
2. TargetPwd
3. TargetUser
4. dsjobcmd - dsjob -report
5. jobName
6. projName - @WHO
=================================================================
Sources:
dsjobcmd = dsjob -report XML
=================================================================
Targets:
1. JobStatusLastRun
2. ETL_JOB_HIST
3. JobRowsLastRun
4. ETL_ROW_HIST
5. JobParamLastRun
6. ETL_PARAM_HIST
=================================================================
To use in next job:
DSJobReportDbDriver - parent of this
SeqJobStatus - run before this job
a. ExtractJobStatusSeq - creates ./Staging/JobStatusStg.txt
b. BuildJobStatusHash - used as lookup in this job
=================================================================
Modification History
=================================================================
Developer Date Modification description
======== ========= ==============================================
kduke 2004-06-03 created
======== ========= ==============================================















 
Category EtlStats 
Multiple Instance True 
Job Version Number 40.1.5 
Hash File Cache Sharing False 
Before Routine DSU.ExecSH(#dsjobcmd# #projName# #jobName# XML >KimD/#jobName#.xml) 

 - Parameters (10) 

Parameter Name Prompt Default Value Help Text
dsjobcmd  dsjob command  ../../DSEngine/bin/dsjob -report  the command line options for dsjob 
projName  project name  DwNav  the name of the project 
jobName  job name  DSJobReportDb.1  the name of the job (or its id) 
TargetDSN  TargetDSN  kduke   
TargetUser  TargetUser  etluser   
TargetPwd  TargetPwd  LDH@9:VA=93L0O5I<;J  
SourceDSN  SourceDSN  kduke  not used 
SourceUser  SourceUser  etluser   
SourcePwd  SourcePwd  LDH@9:VA=93L0O5I<;J  
FilePath  FilePath  ./   

 - Stages (18) 

 - Source Stages (4) 

DSJobReport2 (sequential file) 
JobStatusHash (hash file) 
DSJobReport1 (sequential file) 
DSJobReport3 (sequential file) 

 - Processing Stages (8) 

XfmXml2 (xmlinput) 
XfmStats (transformer) 
CheckForRows (transformer) 
CheckForParams (transformer) 
XfmRows (transformer) 
XfmXml1 (xmlinput) 
XfmXml3 (xmlinput) 
XfmParams (transformer) 

 - Target Stages (6) 

JobParamLastRun (hash file) 
ETL_JOB_HIST (oraoci8) 
ETL_PARAM_HIST (oraoci8) 
JobStatusLastRun (hash file) 
ETL_ROW_HIST (oraoci8) 
JobRowsLastRun (hash file) 



 - Source Stages (4) 

 - DSJobReport2 (sequential file) 


 - JobStatusHash (hash file) 

 - Stage Properties (2) 

Property Value
SQL Null Value Standard DSEngine 
UniVerse Stage Compatibility False 

 - Output Links (1) 

+ JobStatusHash triggers XfmStats  


 - DSJobReport1 (sequential file) 

 - Output Links (1) 

+ xml_report1 triggers XfmXml1  


 - DSJobReport3 (sequential file) 



 - Processing Stages (8) 

 - XfmXml2 (xmlinput) 

 - Stage Properties (12) 

Property Value
validate_input
log_reject_errors
xslt_warning_mapping DS_WARNING 
xslt_error_mapping DS_REJECT 
xslt_fatal_mapping DS_REJECT 
accept_nulls
replace_nulls
discard_empty_values
include_namespaces
format_serialized_chunks
enable_grammar_caching
xml_validation_level

 - Input Links (1) 

+ RowsOut triggered by CheckForRows  

 - Output Links (1) 

+ RowStats triggers XfmRows  


 - XfmStats (transformer) 

+ Stage Variables (0) 

 - Input Links (2) 

+ JobStatusHash triggered by JobStatusHash  

+ JobStats triggered by XfmXml1  

 - Output Links (2) 

+ ETL_JOB_HIST triggers ETL_JOB_HIST  

+ JobStatusLastRun triggers JobStatusLastRun  


 - CheckForRows (transformer) 

+ Stage Variables (0) 

 - Input Links (1) 

+ xml_report2 triggered by DSJobReport2  

 - Output Links (1) 

+ RowsOut triggers XfmXml2 when Index (xml_report2.XMLDOC, 'RowCount', 1) > 0  


 - CheckForParams (transformer) 

+ Stage Variables (0) 

 - Input Links (1) 

+ xml_report3 triggered by DSJobReport3  

 - Output Links (1) 

+ ParamsOut triggers XfmXml3 when Index (xml_report3.XMLDOC, 'ParamSet', 1) > 0  


 - XfmRows (transformer) 

+ Stage Variables (0) 

 - Input Links (1) 

+ RowStats triggered by XfmXml2  

 - Output Links (2) 

+ ETL_ROW_HIST triggers ETL_ROW_HIST  

+ JobRowsLastRun triggers JobRowsLastRun  


 - XfmXml1 (xmlinput) 

 - Stage Properties (12) 

Property Value
validate_input
log_reject_errors
xslt_warning_mapping DS_WARNING 
xslt_error_mapping DS_REJECT 
xslt_fatal_mapping DS_REJECT 
accept_nulls
replace_nulls
discard_empty_values
include_namespaces
format_serialized_chunks
enable_grammar_caching
xml_validation_level

 - Input Links (1) 

+ xml_report1 triggered by DSJobReport1  

 - Output Links (1) 

+ JobStats triggers XfmStats  


 - XfmXml3 (xmlinput) 

 - Stage Properties (12) 

Property Value
validate_input
log_reject_errors
xslt_warning_mapping DS_WARNING 
xslt_error_mapping DS_REJECT 
xslt_fatal_mapping DS_REJECT 
accept_nulls
replace_nulls
discard_empty_values
include_namespaces
format_serialized_chunks
enable_grammar_caching
xml_validation_level

 - Input Links (1) 

+ ParamsOut triggered by CheckForParams  

 - Output Links (1) 

+ JobParamStats triggers XfmParams  


 - XfmParams (transformer) 

+ Stage Variables (0) 

 - Input Links (1) 

+ JobParamStats triggered by XfmXml3  

 - Output Links (2) 

+ ETL_PARAM_HIST triggers ETL_PARAM_HIST  

+ JobParamLastRun triggers JobParamLastRun  



 - Target Stages (6) 

 - JobParamLastRun (hash file) 

 - Stage Properties (2) 

Property Value
SQL Null Value Standard DSEngine 
UniVerse Stage Compatibility False 

 - Input Links (1) 

+ JobParamLastRun triggered by XfmParams  


 - ETL_JOB_HIST (oraoci8) 

 - Stage Properties (4) 

Property Value
DATABASE #TargetDSN# 
USERID #TargetUser# 
PASSWORD HD:@I:V@L93?0GEI<;J<0K1GB
ISOPS NO 

 - Input Links (1) 

+ ETL_JOB_HIST triggered by XfmStats  


 - ETL_PARAM_HIST (oraoci8) 

 - Stage Properties (4) 

Property Value
DATABASE #TargetDSN# 
USERID #TargetUser# 
PASSWORD HD:@I:V@L93?0GEI<;J<0K1GB
ISOPS NO 

 - Input Links (1) 

+ ETL_PARAM_HIST triggered by XfmParams  


 - JobStatusLastRun (hash file) 

 - Stage Properties (2) 

Property Value
SQL Null Value Standard DSEngine 
UniVerse Stage Compatibility False 

 - Input Links (1) 

+ JobStatusLastRun triggered by XfmStats  


 - ETL_ROW_HIST (oraoci8) 

 - Stage Properties (4) 

Property Value
DATABASE #TargetDSN# 
USERID #TargetUser# 
PASSWORD HD:@I:V@L93?0GEI<;J<0K1GB
ISOPS NO 

 - Input Links (1) 

+ ETL_ROW_HIST triggered by XfmRows  


 - JobRowsLastRun (hash file) 

 - Stage Properties (2) 

Property Value
SQL Null Value Standard DSEngine 
UniVerse Stage Compatibility False 

 - Input Links (1) 

+ JobRowsLastRun triggered by XfmRows  






Ascential and DataStage are trademarks of Ascential Software Corporation or its affiliates and may be registered in the United States or other jurisdictions.
For questions or comments regarding this utility, contact tony.curcio@ascentialsoftware.com.