Search found 180 matches

by rafik2k
Sat Jun 30, 2007 7:35 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Executing db2 sql command in a routine
Replies: 11
Views: 8027

I searched in archive and the following code executes db2 sql perferctly. Still i am wondering why my previous code does not work! Any help or suggestion on this will be greatly appreciated Thanks in advance $INCLUDE UNIVERSE.INCLUDE ODBC.H ** Initialise parameters ODBC henv = SQL.NULL.HENV hConn = ...
by rafik2k
Sat Jun 30, 2007 7:30 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: counting number of rows in hash file
Replies: 7
Views: 4922

Thanks Ray for your input! I have tried testing a job, but I got following error message COUNT_RECORD_IN_HASHFILE..Sequential_File_2.IDENT1: |COUNT_RECORD_IN_HASHFILE..UniVerse_1.DSLink4: DSD.BCIOpenR call to SQLExecDirect failed. Statement was:SELECT COUNT(*) FROM HASHRECORD SQLSTATE=S0002, DBMS.CO...
by rafik2k
Fri Jun 29, 2007 1:10 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: counting number of rows in hash file
Replies: 7
Views: 4922

counting number of rows in hash file

Hi,
My requirement to fire sql query in a hash file and get record count based on where condition.

For example,
Select count(*) from hash_file where record_status='Active'

where record_status is column name

If you have any idea/suggestion, kindly let me know.

thanks in advance
by rafik2k
Thu Jun 28, 2007 3:28 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: DB2 date format
Replies: 12
Views: 3899

What is the source datatype? and what is the target db2 date format?

Depending upon your target format, use iconv and oconv function accordingly like

Code: Select all

Oconv((Iconv(DSLink8.PROCESS_DT,"DYMD")),"D-YMD[4,2,2]")
by rafik2k
Tue Jun 26, 2007 12:46 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Executing db2 sql command in a routine
Replies: 11
Views: 8027

Thanks Craig! I added your suggestion, this time job runs fine, but SystemReturnCode deos not return 0 and record is not inserting. Moreover ResultText doesnot retun any information. DB2Cmd1="db2cmd;db2 connect to sample user test using test; db2 insert into db2admin.add(name,phone) values('ABC...
by rafik2k
Sat Jun 23, 2007 4:06 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: capturing reasons of rejected rows in a table
Replies: 1
Views: 994

capturing reasons of rejected rows in a table

Presently I am capturing filtered and rejected rows into db2 table using following constraints at transfomer stage. LNK_Write_Account_Mst_Filtered---> LNK_Write_Account_Mst.REJECTEDCODE = DSE.NOERROR And LNK_Write_Account_Mst.REJECTED LNK_Write_Rejects---> LNK_Write_Account_Mst.REJECTEDCODE where LN...
by rafik2k
Sat Jun 23, 2007 3:27 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Executing db2 sql command in a routine
Replies: 11
Views: 8027

I have modified the code and tried to run, but the job aborted sayting Job stopped - before-job routine returned error: Error variable unassigned on return from BEFORE routine DSU.tempSql DB2Cmd1="db2cmd;db2 connect to sample user test using test; db2 insert into db2admin.add(name,phone) values...
by rafik2k
Wed Jun 20, 2007 7:19 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Executing db2 sql command in a routine
Replies: 11
Views: 8027

chulett wrote:Umm... you need to run it from 'DOS' rather than 'TCL'. ...
Thanks Craig for input,
even I tried using DOS, I didn't get compilation error, but it returns 1
Don't you need a quit in DB2Cmd ?
Ray: Do you mean connect reset command?

Please advice where I am going wrong.
by rafik2k
Wed Jun 20, 2007 7:08 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: How to get categoryname,jobname,job dependency.
Replies: 8
Views: 2941

UV or Hashed File stage querying DS_JOBS excluding any where name begins with a "/" or "" character, returning columns NAME and CATEGORY (both VARCHAR). ... Thanks Ray! Do I need to create a job for same? Can you please explain me little bit more details with syntax. Thanks in a...
by rafik2k
Wed Jun 20, 2007 5:05 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Executing db2 sql command in a routine
Replies: 11
Views: 8027

Executing db2 sql command in a routine

I have created one simple sever routine as below, where I am connecting to database and trying to insert one record into a table. There is no compilation error and while testing it returns 0, but record is not inserting into table. Could you please let me know where I am going wrong? and what is sol...
by rafik2k
Wed Jun 20, 2007 12:39 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: How to get categoryname,jobname,job dependency.
Replies: 8
Views: 2941

Hi rafik2k , Could you let me know how did go about creating the test job of urs which displayed all the jobnames of the current project Thanks in advance Create simple job with Transformer stage and linkt to it a sequential file stage for capturing out in text or csv format. In transformer do the ...
by rafik2k
Tue Jun 19, 2007 8:19 am
Forum: General
Topic: Can't open property of any Activity in Sequence
Replies: 6
Views: 3055

Thanks RelianceDss and Craig.
Ya I now see service pack 2 on my machine.
I need to ask patch from ibm support team.
by rafik2k
Tue Jun 19, 2007 7:57 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Email notification
Replies: 12
Views: 4383

Download blah.exe from the Web; it's a good SMTP client. If i were you , id have marked it as premium-premium content. Available only on payment of a small fee. :wink: And Sorry for the plagiarism(almost) which i myself condemn. First thing is that you are Rameshrr3, not Ray! blah.exe is 100% free ...
by rafik2k
Tue Jun 19, 2007 7:45 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Email notification
Replies: 12
Views: 4383

ray.wurlod wrote:Download blat.exe from the Web; it's a good SMTP client. ...
Thanks a lot Ray!
I searched in google for blat.exe and found following site

Code: Select all

http://www.blat.net
Blat - A Win32 Command Line SMTP Mailer

Is that same site for downloading blat.exe?
by rafik2k
Tue Jun 19, 2007 4:52 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Problem with Trim
Replies: 4
Views: 2142

Can you check using simple trim and upcase funtion only

If(UpCase(trim(<Source.column_name>))=UpCase(trim(<Lookup.column_name>))
then 'Y' else 'N'

BTW what is metadata for above mentioned table?