DOS Batch Script do to a mass DataStageJobCompile
@echo off
:: -----------------------------------------------------------------
:: DataStageJobCompile.bat
:: -----------------------------------------------------------------
:: This batch script is used to Compile all jobs in each project for a given server
:: This script must be run from a DataStage client machine and the parameters below should be given
:: -----------------------------------------------------------------
:: Host is server name
:: User is DataStage username
:: Password is DataStage password
SET Host=%1
SET User=%2
SET Password=%3
SET Location=%4
::-------------------------------------------------------------------
::List out all projects from the given server
::------------------------------------------------------------------
cd C:\Program Files\Ascential\DataStage7.5.2\
dsjob.exe -server %Host% -user %User% -password %Password% -lprojects > %Location%\ProjectsList.txt
cd %Location%
SET ProjectsList.txt=%Location%\ProjectsList.txt
::pause
:: -----------------------------------------------------------------
:: Get the current Date
:: -----------------------------------------------------------------
FOR /f "tokens=2-4 delims=/ " %%a in ('DATE/T') do SET DsxDate=%%c%%a%%b
:: -----------------------------------------------------------------
:: Get the current Time
:: -----------------------------------------------------------------
FOR /f "tokens=1* delims=:" %%a in ('ECHO.^|TIME^|FINDSTR "[0-9]"') do (SET DsxTime=%%b)
:: -----------------------------------------------------------------
SET delim1=%DsxTime:~3,1%
SET delim2=%DsxTime:~9,1%
FOR /f "tokens=1-4 delims=%delim1%%delim2% " %%a in ('echo %DsxTime%') do (
set DsxHr=%%a
set DsxMin=%%b
set DsxSec=%%c
set DsxHun=%%d
)
:: -----------------------------------------------------------------
:: Set the log file name
:: -----------------------------------------------------------------
SET LogFileName=%ProjectDir%\DataStageExport_bat_%DsxDate%_%DsxHr%_%DsxMin%_%DsxSec%.log
:: -----------------------------------------------------------------
:: Create a log file name to output
:: -----------------------------------------------------------------
cd %Location%
ECHO. > %LogFileName%
ECHO DataStage Export ran on %DsxDate% %DsxHr%:%DsxMin%:%DsxSec% with the following parameters >> %LogFileName%
ECHO Host=%Host% >> %LogFileName%
ECHO User=%user% >> %LogFileName%
ECHO Project=%Project% >> %LogFileName%
ECHO LogDir=%Location% >> %LogFileName%
::ECHO JobsList=%JobsList% >> %LogFileName%
ECHO. >> %LogFileName%
:: -----------------------------------------------------------------
:: Change the local directory to DataStage instalation Directory
:: This must be modified based on the DataStage Instalation Drive
:: -----------------------------------------------------------------
for /F "tokens=1" %%i in (%ProjectsList.txt%) do (
::SET Project=%%i
::-------------------------------------------------------------------
::List out all jobs from the given project
::------------------------------------------------------------------
cd C:\Program Files\Ascential\DataStage7.5.2\
dsjob.exe -server %Host% -user %User% -password %Password% -ljobs %%i > %Location%\JobsList.txt
cd %Location%
SET JobsList=%Location%\JobsList.txt
:: -----------------------------------------------------------------
cd C:\Program Files\Ascential\DataStage7.5.2\
:: for /F "tokens=1" %%j in (%JobsList%) do dscc /h %Host% /u %User% /p %Password% %Project% /j %%j
::ECHO Compileing %%j job in %Project% on Host: %Host% >> %Location%\%LogFileName%
:: ECHO. >> %LogFileName%
:: ECHO *** Completed Compile of Job: %%j on Host: %Host% >> %LogFileName%
:: ECHO. >> %LogFileName%
)
:: ECHO. >> %LogFileName%
:: ECHO successfully Exported
Translate to your Language
Labels
- BI
- Big Data
- BO
- BO Universe Context
- BusinessObjects Context
- BusinessObjects Universe Context
- Cognos
- Command Line DataStage Job Export
- DataStage
- DataStage Command Line Compile
- DataStage Job Compile in command line
- DataStage SCD
- DataStage Server JobCompile Script
- DB
- DW
- DW-SCD
- Optimizing BO Universe and Reports
- Optimizing Business Objects Universe and Reports
- Other
- Q&A
- SAP BO
- SCD
Disclaimer Statement
Total Pageviews
Category
- BI
- Big Data
- BO
- BO Universe Context
- BusinessObjects Context
- BusinessObjects Universe Context
- Cognos
- Command Line DataStage Job Export
- DataStage
- DataStage Command Line Compile
- DataStage Job Compile in command line
- DataStage SCD
- DataStage Server JobCompile Script
- DB
- DW
- DW-SCD
- Optimizing BO Universe and Reports
- Optimizing Business Objects Universe and Reports
- Other
- Q&A
- SAP BO
- SCD
Track
Follow us on FaceBook
About
Powered by Blogger.
Category
- BI
- Big Data
- BO
- BO Universe Context
- BusinessObjects Context
- BusinessObjects Universe Context
- Cognos
- Command Line DataStage Job Export
- DataStage
- DataStage Command Line Compile
- DataStage Job Compile in command line
- DataStage SCD
- DataStage Server JobCompile Script
- DB
- DW
- DW-SCD
- Optimizing BO Universe and Reports
- Optimizing Business Objects Universe and Reports
- Other
- Q&A
- SAP BO
- SCD
Contributors
Blog Archive
-
▼
2010
-
▼
September
- Informatica PowerCenter 7 Architecture and Perform...
- Informatica PowerCenter 7 Architecture and Perform...
- DataStage Performance Tuning
- DataStage Performance Tuning
- BusinessObjects Enterprise XI session timeout
- BusinessObjects Enterprise XI session timeout
- 10 Don't Do on DataStage
- 10 Don't Do on DataStage
- The Deciding factors for ETL Tools
- The Deciding factors for ETL Tools
- End-to-End Data Governance Webinar by RalphKimbal
- End-to-End Data Governance Webinar by RalphKimbal
- Business Objects Tips and Tricks
- Business Objects Tips and Tricks
- Business Objects Tips and Tricks
- DataStage Convert 32bit(2GbHash Limit) Hash to 64bit
- DataStage Convert 32bit(2GbHash Limit) Hash to 64bit
- DataStage Convert 32bit(2GbHash Limit) Hash to 64bit
- DataStage tip for beginners
- DataStage tip for beginners
- Debugging DataStage parallel jobs
- Debugging DataStage parallel jobs
- Data Generation Using DataStage
- Data Generation Using DataStage
- Data Generation Using DataStage
- DataStage and Slowly Changing Dimensions
- DataStage and Slowly Changing Dimensions
- DataStage and Slowly Changing Dimensions
- DOS Batch Script to Export DataStage Jobs Automati...
- DOS Batch Script to Export DataStage Jobs Automati...
- DataStage Server JobCompile Script
- DataStage Server JobCompile Script
- BusinessObjects Context
- BusinessObjects Context
- Optimizing Business Objects Universe and Reports
- Optimizing Business Objects Universe and Reports
- Optimizing Business Objects Universe and Reports
-
▼
September
Popular Posts
-
Netezza dosen't have any isnumeric check function, so in order to find out whether the column has non-numeric, use the following logic n...
-
If you have table like below GROUP_NAME GROUP_ID PASS_FAIL COUNT GROUP1 5 FAIL 382 GROUP...
-
@echo off :: ----------------------------------------------------------------- :: DataStageExport.bat :: -----------------------------------...
-
Netezza has 3 internal planner Fact Relationship Planner (factrel_planner) Snowflake Planner Star Planner In the course of a query pla...
-
What is Big Data? Big data is data that exceeds the processing capacity of traditional database systems. The data is too big, moves too fast...
-
Source :-dwh-ejtl.blogspot.com Q1) Tell me what exactly, what was your role? A1) I worked as ETL Developer. I was also involved in requireme...
-
One of the regular viewer of this blog requested me to explain the important's of the ETL mapping document. What is ETL Mapping Document...
-
I am sure most of you heard about market buzz words nosql,newsql... and it often make our DW developers to get confused on this new terms.Mo...
-
In data warehousing, a conformed dimension is a dimension that has the same meaning to every fact table in the structure. Conformed dim...
-
This note assumes some familiarity with the DataStage transformation engine. DataStage is normally used to process multiple input files and/...
Wednesday, September 22, 2010
DataStage Server JobCompile Script
by Unknown |  at 9:18 AM
- Netezza ISNUMERIC Data Check Logic
- How to do PIVOT in netezza SQL
- Datastage DSX Files Export Script
- Netezza Optimizer Parameters
- Big Data and Hadoop Questions and Answers
- Informatica Job Interview Question & Answers
- What is ETL Mapping Document ?A Real Time Example
- NOSQL 101
- Conformed Dimensions with example
- Data Generation Using DataStage
0 comments: