I did try this and both commands give the same number !
SH -c "dsjob -ljobs Project1 | wc -l"
SH -c "dsjob -ljobs Project1 | cut -d'.' -f1 | uniq | wc -l "
Thanks for trying!
Search found 349 matches
- Fri Jan 26, 2007 10:43 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: Avoid Instances--SH -c "dsjob -ljobs <Project> |
- Replies: 7
- Views: 2013
- Fri Jan 26, 2007 10:09 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: Avoid Instances--SH -c "dsjob -ljobs <Project> |
- Replies: 7
- Views: 2013
Avoid Instances--SH -c "dsjob -ljobs <Project> |
Hi,
I need to find the total number of jobs in a project, I can use the
SH -c "dsjob -ljobs <Project> | wc -l"
But the issue is it also counts the instance of a job and bump the number way up, is there a way I can count Just the jobs and not instances?
Thanks,
I need to find the total number of jobs in a project, I can use the
SH -c "dsjob -ljobs <Project> | wc -l"
But the issue is it also counts the instance of a job and bump the number way up, is there a way I can count Just the jobs and not instances?
Thanks,
- Mon Jan 15, 2007 1:15 pm
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: Kick off job based on table entry
- Replies: 4
- Views: 1517
- Mon Jan 15, 2007 12:49 pm
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: Kick off job based on table entry
- Replies: 4
- Views: 1517
Kick off job based on table entry
Hi, We have a scenario where we need to kick off a job if the job name is populated in a table, did any one had a smiliar situation, basically a table is populated (clear and load) every day with job names, if the DS job name is present in the table that needs to be kicked off, we are using ControlM...
- Mon Oct 02, 2006 8:52 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: Errors while viewing data through Teradata Enterprise Stage
- Replies: 5
- Views: 2968
Hi, I am getting the same error, even though the parameters are all correct ! Error executing View Data command: ##E TCOS 000005 10:52:03(000) <main_program> Invalid identifier: $ ##E TCOS 000005 10:52:03(000) <main_program> Invalid identifier: $ ##E TCOS 000048 10:52:03(001) <main_program> Paramete...
- Fri Sep 15, 2006 8:03 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: 1403: update record not found
- Replies: 4
- Views: 2385
- Thu Sep 14, 2006 9:34 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: null handling
- Replies: 17
- Views: 6929
Finally i think i have figured out the issue, the char column comming in is not being identified as Null, I used the following IsNull(Trim(Src.Col)) and I made a simple job that checks and writes the nulls and not nulls based on Src.Col to 2 different streams and all the rows go down the NOT NULLS p...
- Thu Sep 14, 2006 8:59 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: null handling
- Replies: 17
- Views: 6929
- Thu Sep 14, 2006 8:42 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: null handling
- Replies: 17
- Views: 6929
- Thu Sep 14, 2006 8:10 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: null handling
- Replies: 17
- Views: 6929
- Wed Aug 30, 2006 9:06 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: VarChar to Hex
- Replies: 8
- Views: 4651
- Wed Aug 30, 2006 8:55 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: VarChar to Hex
- Replies: 8
- Views: 4651
- Wed Aug 30, 2006 6:16 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: VarChar to Hex
- Replies: 8
- Views: 4651
Hi Ray, Sorry for the confusion, yes I need the binary output. I designed it with the basic transformer and got the output, how ever is there away to keep the leading zeros with any options: 56=11100 (Can we get 00011100) Secondly, do we have any options we can mention in the function so that it tak...
- Tue Aug 29, 2006 12:07 pm
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: VarChar to Hex
- Replies: 8
- Views: 4651
VarChar to Hex
Hi, I need to convert varchar to hex value. There are 2 parts to it, first convert from varchar to hex but take only 2 at a time from the below source column: SrcCol=56243312.... Required Output value (if we just consider the first 2 i.e. 56) outputCol=00011100 Did any one come across sucha situatio...
- Tue Aug 29, 2006 5:13 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: vertical pivot
- Replies: 28
- Views: 16171