My four main reasons to prefer job control routines over dsjob.
1. dsjob is a SAMPLE program. It is supplied as an example of how to use the DataStage C API. In places (places it seems Wolfgang doesnt use) its a bit flaky. For example (in 4.0) the -wait option fails to wait. This is not good if you then immediately fire up the bulk loader!
2. Granularity of information gathering is coarse in dsjob. For example, all you can do is get a few lines of information about a job (with the -jobinfo option) which you then have to parse (perhaps using an awk
script) to extract the item of information you require. Using the job control function DSGetJobInfo you can isolate the item of information to the exact item you require, for example DSGetJobInfo(hJob,DSJ.JOBSTATUS). And what do you do with a mix of UNIX and NT? dsjob is portable (exists on both), but the scripting language (by default) is radically different!
3. Only one byte is available for exit status, which has led to more than a little confusion (and more than a few support calls) when using dsjob. No such restrictions exist within the DataStage environment.
4. Ultimately, the C API functions invoke their BASIC counterparts, so that dsjob (or any other program using the DataStage C API) is at best an interlude. You are not exercising direct control over anything that happens in DataStage. Only indirect.
In my opinion, the BASIC programming language is far more flexible than shell scripting languages. Just the size of the manual (887 pages?) should suggest that this is so.
Finally, it is arguable that job control routines are "native", and therefore closer, to DataStage.
using the commandline-Interface dsjob within a UNIX environm
Archive of postings to DataStageUsers@Oliver.com. This forum intended only as a reference and cannot be posted to.
Return to “Archive of DataStage Users@Oliver.com”
Jump to
- Moderators' Choice
- ↳ Editor's BLOG Corner
- ↳ Ask the Experts! - Dads and Grads
- ↳ DSXchange Testimonials
- ↳ Cognos (IBM BI)
- FAQs
- ↳ FAQs
- ↳ FAQ Discussion
- DataStage
- ↳ General
- ↳ IBM<sup>®</sup> Infosphere DataStage Server Edition
- ↳ IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- ↳ Archive of DataStage Users@Oliver.com
- IBM<sup>®</sup>Infosphere Products<sup></sup>
- ↳ Business Glossary
- Suggestions
- ↳ Site/Forum
- ↳ Enhancement Wish List
- Consulting
- ↳ Talent
- ↳ Looking for Talent
- Support
- ↳ Parameter Manager
- ↳ Compile All Plus
- Usergroup Forums
- ↳ Usergroup Central Forum
- ↳ Heartland Usergroup Forum
- The Written Word
- ↳ Articles, White Papers and Tips and Tricks
- ↳ Product Documentation
- Third Party Applications
- ↳ Third Party Applications
- Product Derivatives
- ↳ Functions
- ↳ Routines
- ↳ Jobs
- ↳ Logs
- Tools
- ↳ Tools Forum
- Category
- ↳ Infosphere Master Data Management
- ↳ Data Quality Best Practices
- ↳ IBM QualityStage
- ↳ Information Analyzer (formerly ProfileStage)
- ↳ IBM<sup>®</sup> SOA Editions (Formerly RTI Services)
- ↳ IBM<sup>®</sup> DataStage TX
- ↳ BI
- ↳ Data Integration