Search found 4605 matches

by kduke
Thu Jun 30, 2005 3:15 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Problems using multiple DSAttachJob commands - job hangs
Replies: 3
Views: 1666

First of all never attach to the current running job. It will always hang. Second you should not be able to get run times of multiple instance jobs this way. You need to attach to each one separately. This code: Invocation_Id = DSGetJobInfo(JobHandle,DSJ.JOBINVOCATIONID) Should return a mult...
by kduke
Thu Jun 30, 2005 8:38 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Replace function
Replies: 12
Views: 3171

REPLACE is similar to CHANGE or EREPLACE.
by kduke
Wed Jun 29, 2005 6:32 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Passing values to Job Parameters
Replies: 9
Views: 1938

The second option is basically the same as the first except you need to run a job to extract parameter values from a table into a hash file before you run any jobs. In each of these you need to get a list of parameter names from the job and then set them if they are in your sequential file or hash f...
by kduke
Wed Jun 29, 2005 3:41 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Passing values to Job Parameters
Replies: 9
Views: 1938

You need to pipe to

cut -d"=" -f2

Code: Select all

PARAM_VALUE=`grep "^$PARAM =" param.ini | cut -d"=" -f2`
by kduke
Wed Jun 29, 2005 1:38 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Passing values to Job Parameters
Replies: 9
Views: 1938

Most people use a sequential file because it is easy to edit. They use syntax like: PARAM_NAME = VALUE They process this with a batch job using openseq. I have seen Oracle and Access also used as sources. These were dumped into hash files using a job. Hash file key was the parameter name. So it was ...
by kduke
Wed Jun 29, 2005 12:18 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: order a job for each filename inside a directory
Replies: 8
Views: 2164

Ray posted a real nice routine to do exactly this. You might want to search for it.
by kduke
Wed Jun 29, 2005 9:52 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Updatating a sequential file
Replies: 5
Views: 1528

Ray's method is very easy to program. If you openpath to the directory where the file is located. Read the whole file in one record then just change then record you want and write it back. SeqFilePath = "./MySeqFiles" FileName = "MySeq.txt" openpath to SeqFileDir else stop read R...
by kduke
Wed Jun 29, 2005 9:41 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: How to Total no.of jobs in a Project
Replies: 6
Views: 1719

The DS_JOBS table has categories in it as well as jobs. They start with "\". So to not count them you need to do what Ray posted or something similar. I prefer UNLIKE "\...". This is just Ray's style.
by kduke
Tue Jun 28, 2005 2:29 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: DataStage Admin commands
Replies: 3
Views: 3688

Try HELP at the > prompt. I would do this from a telnet or ssh connection versus Administrator Window. It maybe easier.

There are some really good posts on this topic. Try to search for them. DS.TOOLS is a menu that will do a lot of the work for you. Try it.
by kduke
Tue Jun 28, 2005 2:26 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: DS_log file
Replies: 10
Views: 4212

TO learn what these fields are you need to run the SQL and compare it to the Director. If you cannot figure out the rest of the columns then you do not understand Director. You are going to have to do some of the work here to educate yourself. We will help on complex things or unusual things like wa...
by kduke
Tue Jun 28, 2005 8:12 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: type 1 and type 2 dimensions
Replies: 11
Views: 4076

Sorry I asked. This gets uglier as it goes. I understand the concept. Is this RCD type 42 or SCD type 42. When it gets to 42 it is the answer to all our problems. Right?
by kduke
Mon Jun 27, 2005 10:54 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: type 1 and type 2 dimensions
Replies: 11
Views: 4076

There are 2 versions of ech field. Agreed it is ugly but type 3.
by kduke
Mon Jun 27, 2005 8:53 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: type 1 and type 2 dimensions
Replies: 11
Views: 4076

This is type 3 isn't it?
by kduke
Mon Jun 27, 2005 4:17 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Attaining job required parameters from a Unix shell script
Replies: 5
Views: 1582

Ray man is too tired to say apathy serks.
by kduke
Mon Jun 27, 2005 4:14 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Server Job Script Automation
Replies: 4
Views: 947

We had a similar problem. We wrote a job to copy one table. We exported it. We also imported all the tables. Ray posted code along time ago to read DS_METADATA. I used this code to change the DSX to a different table. I hear that ProfileStage can do this. I have never seen it work though. It is a pr...