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...
-
@echo off :: ----------------------------------------------------------------- :: DataStageExport.bat :: -----------------------------------...
-
The error and reject capturing is one of the best practices that I recommend to all developers, let me explain in a very simple way Rejec...
-
If you have table like below GROUP_NAME GROUP_ID PASS_FAIL COUNT GROUP1 5 FAIL 382 GROUP...
-
In data warehousing, a conformed dimension is a dimension that has the same meaning to every fact table in the structure. Conformed dim...
-
The open document functionality between 3 and 4 is exactly the same expect a change the default URL The default URL to the OpenDocument web...
-
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...
-
Migrate Universe from one database to another · First backup the original universe in case if something go wrong · Launch ...
-
Additive: Additive facts are facts that can be summed up through all of the dimensions in the fact table. A sales fact is a good example f...
-
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...
Wednesday, September 22, 2010
DataStage Server JobCompile Script
by Unknown |  at 9:18 AM
-
Netezza ISNUMERIC Data Check Logic
-
Datastage DSX Files Export Script
-
Datastage Error and reject record Handling simplified
-
How to do PIVOT in netezza SQL
-
Conformed Dimensions with example
-
SAP BO Open Document in 4.1
-
Informatica Job Interview Question & Answers
-
SAP BO Universe and Report Migration Part 1
-
Types of Measures in Fact Tables
-
What is ETL Mapping Document ?A Real Time Example
0 comments: