Search found 87 matches

by Das
Wed Mar 14, 2007 1:22 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Reading parameter from a file or Table
Replies: 7
Views: 4051

You'd have more options if you were on a 7.x version, Sequence jobs support looping constructs there. For your version, I'd look into either hand coded job control if you are comfortable with that, or perhaps a job that reads the parameter file/table and leverages the UtilityRunJob function inside ...
by Das
Wed Mar 14, 2007 12:30 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Reading parameter from a file or Table
Replies: 7
Views: 4051

Reading parameter from a file or Table

Hi , I wanted to pass one parameter to a DS job from file .Actually the scenario is as follows ,I need to run a DS job N times for some different values of some ids which I can store in a file or a table. Please let me know is it possible ...? If possible how can i read parameter vlues from file ..?...
by Das
Thu Mar 01, 2007 3:06 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Date format Error
Replies: 7
Views: 2613

Do a select and load it to a flat file, just a few records. See if the date comes up as integers (internal format). If yes then no conversion is required, pass it as it is. Thank you I have tried the same ,The date is coming in internal integer format .When i try to update the date field with this ...
by Das
Fri Feb 23, 2007 6:38 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Date format Error
Replies: 7
Views: 2613

I just re-read your post and saw that you are using INFORMIX. You need to use the internal date format, so just the ICONV() part to convert your date. ... When i am viewing data from input stage->view data option it is showing integer values of dates.Can i use like following ICONV(reg_link.reg_date...
by Das
Fri Feb 23, 2007 4:51 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Date format Error
Replies: 7
Views: 2613

OCONV(ICONV(In.DateStringColumn,'D4MDY'),'D4/DMY[2,2,4]') Note that this does not check for valid dates. Or, as a string solution, In.DateStringColumn ...[/quote] Thanks. In my case source and target are same.i am fetching some data and trying to update the same table with some logic.IN table the f...
by Das
Fri Feb 23, 2007 3:46 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Date format Error
Replies: 7
Views: 2613

Date format Error

Hi,

Hi ,
I have one issue with the date format.Please give suggestions.

I need to convert the date format coming in mm/dd/yyyy to dd/mm/yyyy to update a data fileld in an informix table where field datatype is date

Thanks,
by Das
Tue Jan 23, 2007 6:07 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Job is showing running status after exit
Replies: 5
Views: 1418

Issuing a call to DSLogWarn() does not trigger a job failure, that's what DSLogFatal() is used for. ... OK..But i think when it finds the exit it will exit from the loop..and continue with the statements outside the loop... After exicuting that eithr it will abort or finish ?But here it showing &qu...
by Das
Tue Jan 23, 2007 2:50 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Job is showing running status after exit
Replies: 5
Views: 1418

Job is showing running status after exit

Hi, I have one issue as follows.In Datastage control jobs i have written a code as below inside a while loop. If count > 3 then Call Dslogwarn("Failure"); exit end if While i am running the job the count become >3 and the job is giving the Call Dslogwarn("Failure") message in dir...
by Das
Fri Jan 12, 2007 3:39 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Reset Data Stage Job:
Replies: 1
Views: 1051

Reset Data Stage Job:

HI all, hJob1 = DSAttachJob("ABC", DSJ.ERRFATAL) LastRunStatus = DSGetJobInfo(hJob1, DSJ.JOBSTATUS) If ( LastRunStatus = DSJS.RUNFAILED Or LastRunStatus = DSJS.STOPPED Or LastRunStatus = DSJS.CRASHED) Then Call DSLogInfo("ABC", "Reseting job and last Run status") ErrCod...
by Das
Tue Dec 12, 2006 5:59 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Query Performance Issue
Replies: 2
Views: 770

Query Performance Issue

Hi All, I have some performance issues with Datastage job.Job is running very slow and tranfering <1 per sec,here its around 20lakhs of record For this job the source and target are same Informix Stage and that refernces only one table Tab1 ,extracting data based on the below query select Col1 From ...
by Das
Thu Dec 07, 2006 10:25 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Extra characters at the end of a datetime or interval
Replies: 7
Views: 5789

ray.wurlod wrote:

Code: Select all

Left(TheTimestamp, 19) 
or

Code: Select all

Field(TheTimestamp, ".", 1, 1)
...
Hi Ray,
Thanks.

This is working fine.But i dont know why 000 is appended at the end of the time stamp ,As it is declared timestamp 19 in source and target and bith are same table.

[/b]
by Das
Thu Dec 07, 2006 6:32 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Extra characters at the end of a datetime or interval
Replies: 7
Views: 5789

Extra characters at the end of a datetime or interval

I am getting the following message in Datastage Director "Extra characters at the end of a datetime or interval". Incoming date format is: 2000-09-07 09:26:27.000 ,i want to convert it to 2000-09-07 09:26:27 for comparing the date field with the date field in the table. Please provide a so...
by Das
Fri Nov 17, 2006 4:23 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Pass valus to UNIX script fromDS control job
Replies: 9
Views: 2396

sb_akarmarkar wrote:Das,

You can also use DSExecute function.....



Thanks,
Anupam

Thanks.please provide me the code
by Das
Fri Nov 17, 2006 4:15 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: pass parameter to DSSendmail Subroutine
Replies: 8
Views: 2768

[quote="ray.wurlod"]You would need an appropriate DEFFUN declaration. Why not use it as a prototype for your own control job in which you call DSSendMail? If it's you calling it, you can supply whatever values you like ...[/q

Thanks .Can u give the code here?
by Das
Thu Nov 16, 2006 4:55 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Pass valus to UNIX script fromDS control job
Replies: 9
Views: 2396

Hi Thanks for the reply.


I want to call a unix scrpt from a contril job to send a mail notification
please provide a solution.