The Problem

Quite often it is necessary to make sure that only one copy of the package is being executed at a given time. For example, the package below is being executed every 2 minutes but it might take more than 2 minutes to complete.
The package is creating text files it is not possible to open the same file twice for writing. So we have to check if the same package is being executed and if it aborts the execution.

Check Object Execution1

The Solution

This can be easily done by using SQL Data Check Action

Example

SQL Data Check uses SQL scripts to check data in the database.
For example, the user may write the following SQL:
Select count(*) from table
Execution will be successful if the value of the first field of lookup query is more than 0
Execution will fail if the value of the first field of lookup query is equalled to 0 or less than 0 or field type is not numeric.

Using the same approach we can query QUEUE and QUEUE_ACTIONS tables

Select Count(*) as RC from
( select OBJECT_ID from QUEUE WHERE STATUS='R' and OBJECT_ID=3924
  union all
  select OBJECT_ID from QUEUE_ACTIONS WHERE STATUS='R' and OBJECT_ID=3924
)

Check Object Execution3

Note: 3924 is a package ID

Check Object Execution2

 

Check Object Execution4

Note: Status=R means running.

List of repository tables

http://www.etl-tools.com/articles/repository-tables.html

 

Direct link, no registration required.
 
Xerox
Swiss banking
Bank Of Oklahoma
Red Cross
Alta Pacific bank
Copeinca
Gas alberta
NHS
Royal Brunei
First Oklahoma bank
Noresco
Iqvia

Testimonials

What customers say about us

  • swissbanking

    I used Advanced ETL Processor in 2 Enterprises for many business processes and Business automation (outside finance department). I did not find any other tool with so many functions and broad flexibility for that Price! If you need support for bugs or solution design you will get it very fast. Best Support I have ever seen.

    Lionel Albrecht
  • iqvia

    IQVIA and DB Software Laboratory (DBSL) partnered in 2010 and have been working in close cooperation ever since. Over this period of time DBSL software components formed an integral part of a large number of IQVIA applications currently used by over 20 UK NHS Trusts (Hospitals).

    Dmitry Dorsky,
    Director
  • xerox

    The product is easy to learn and once a developer understands the ETL way for solving the problem at hand, the developer's productivity will increase. Even our DBAs now uses the ETL software to quickly create solutions instead of SSIS or .SQL jobs.

    Daniel Fung
    Solutions Architect

 

This site uses cookies. By continuing to browse the site, you are agreeing to our use of cookies