Search found 33 matches

by syang@collaborative.com
Wed Apr 01, 2015 3:08 pm
Forum: General
Topic: Derive the host name and project name dynamically
Replies: 6
Views: 2719

Hi AshishDevassy, I have also considered this, but I wanted to know if there were any other way to get the host name dynamically. Because the host name parameter is hard coded into every directory parameter, this would require me to change every job that uses a directory parameter. Thanks for your i...
by syang@collaborative.com
Wed Apr 01, 2015 9:39 am
Forum: General
Topic: Derive the host name and project name dynamically
Replies: 6
Views: 2719

Derive the host name and project name dynamically

Hi guys,

I move Sequencer jobs from a Development ,to a Test, and to a Production environment constantly and sometimes forget to change the host name parameter.

I was wondering if there is a way to get the host name and project name dynamically in a Sequencer job?

Thanks.
by syang@collaborative.com
Tue Mar 10, 2015 12:18 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: FTP Stage not sending Columns as First Line
Replies: 2
Views: 1473

Hi guys,

It seems I was looking at the wrong files. Both FTP files don't have any column names as the first line.
by syang@collaborative.com
Tue Mar 10, 2015 10:52 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: FTP Stage not sending Columns as First Line
Replies: 2
Views: 1473

FTP Stage not sending Columns as First Line

Hi guys, I currently have two FTP jobs that use the FTP Enterprise stage. Both jobs have exact same settings, FTP from a Netezza Connector, and write a .txt file to a directory. The weird thing is that one .txt file has the column names as the first line, and the other does not. The first job uses t...
by syang@collaborative.com
Thu Jan 29, 2015 11:29 am
Forum: General
Topic: Parameter inside another Parameter
Replies: 2
Views: 1408

Thanks Mike.
by syang@collaborative.com
Wed Jan 28, 2015 11:22 am
Forum: General
Topic: Parameter inside another Parameter
Replies: 2
Views: 1408

Parameter inside another Parameter

Hi guys, I couldn't find any information on nesting a parameter inside another parameter. Is it possible to add a parameter to another parameter's value? For example: Parameter set Parameter Value #params.host# host889\ #params.top_dir# #params.host#top_directory\ Thanks.
by syang@collaborative.com
Wed Jan 21, 2015 4:39 pm
Forum: General
Topic: custom trigger for Sequence Job when child jobs fail
Replies: 7
Views: 4183

Ah, thanks. That sounds simple enough.
by syang@collaborative.com
Tue Jan 20, 2015 7:14 pm
Forum: General
Topic: custom trigger for Sequence Job when child jobs fail
Replies: 7
Views: 4183

I'm not sure what you mean. Do you mean to put success and failure notifications for each job activity? Right each job activity has failure trigger only.
by syang@collaborative.com
Tue Jan 20, 2015 2:31 pm
Forum: General
Topic: custom trigger for Sequence Job when child jobs fail
Replies: 7
Views: 4183

custom trigger for Sequence Job when child jobs fail

Hi guys, Here is my current situation. I have a master sequencer(mas_seq) that will run another sequencer(Seq_stage_load). Seq_stage_load has 20 job activities(stage_job_1, stage_job_2, etc.) that will each run a parallel job. If the parallel job fails, the job activity triggers a failure notificati...
by syang@collaborative.com
Wed Dec 17, 2014 8:01 pm
Forum: General
Topic: Get record count as a User Variable
Replies: 7
Views: 3506

Thanks Craig. I ended up writing a routine to get the Link count.

I used this: DSGetLinkInfo(handle, Stage_Name, Link_Name, DSJ.LINKROWCOUNT)

Thanks again.
by syang@collaborative.com
Wed Dec 17, 2014 2:06 pm
Forum: General
Topic: Get record count as a User Variable
Replies: 7
Views: 3506

Thanks for the info. I have not worked with any server jobs, as I'm very new to DataStage. How would I set the UserStatus to the count of a table? I've been looking on this forum, and read about using a transformer, but no real detail on how the mechanics of how this is done.
by syang@collaborative.com
Wed Dec 17, 2014 12:54 pm
Forum: General
Topic: Get record count as a User Variable
Replies: 7
Views: 3506

Get record count as a User Variable

Hi guys, This is the requirement: If table A's record count is 0, don't run job. I am running Job_A, which loads data into Table_A. Job_B will load data from Table_A into Table_B by truncate and insert. If Table_A is empty, Table_B will be truncated and 0 records will be inserted. I am trying to get...
by syang@collaborative.com
Tue Dec 16, 2014 5:14 pm
Forum: General
Topic: Check if a job ran at 5AM.
Replies: 4
Views: 2143

Sorry I haven't replied sooner. Thanks for the input guys. This is the simple frame work that I have. %DsJob% -server %Server% -user %username% -password %password% -report %Project% %JobName1% >> %LogFileDir% :: sets the job_start_time variable to the date. :: example: "Job start time=2014-11-...
by syang@collaborative.com
Sat Dec 13, 2014 7:33 am
Forum: General
Topic: Check if a job ran at 5AM.
Replies: 4
Views: 2143

That would be great. Where can I go to get the exact syntax for that? I've been trying to check for the job status, 0 for running and 99 for not running, but have had no success at writing an IF/ELSE statement. This is the code I used to check the job status: %DsJob% -server %Server% -user %username...
by syang@collaborative.com
Fri Dec 12, 2014 2:12 pm
Forum: General
Topic: Check if a job ran at 5AM.
Replies: 4
Views: 2143

Check if a job ran at 5AM.

Hi guys, Here is the requirements: trigger a job that is supposed to run everyday at 5AM through the DS Director; if for some reason, that job didn't run. I will be writing a batch script. I'm wondering how I can check if the job ran at 5AM. Is there a way to check for the job status of a specific j...