Search found 6797 matches

by DSguru2B
Tue May 15, 2007 9:39 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: can we use if..then...else conditions in a stage variable
Replies: 13
Views: 3413

Use a simple if then else statement in stage variable to see if its numeric or not.
Use another if then else statement in the derivation to check on the value of stage variable and putting proper values for particular columns.
by DSguru2B
Tue May 15, 2007 9:21 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Datastage 8.0
Replies: 2
Views: 827

It might be. Report this behaviour to your support provider.
by DSguru2B
Tue May 15, 2007 9:20 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: can we use if..then...else conditions in a stage variable
Replies: 13
Views: 3413

If then else ----->Yes
Case ---- > No.
by DSguru2B
Tue May 15, 2007 9:19 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: time stamp conversion
Replies: 19
Views: 7432

Ok, then change the FixDay stage variable's derivation to the following:

Code: Select all

If in.Col[5,1] = " " then in.Col[1,3]:" 0":in.Col[6,21] else in.Col

The StringToTimestamp() derivation will remain the same. Read the date as varchar.
by DSguru2B
Tue May 15, 2007 9:13 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Deleting records from Sybase IQ DB.
Replies: 4
Views: 3229

Delete is a logged activity. It will take time. Are you only deleting records that are found in your sequential file stage? If yes then why not do an instant update?
by DSguru2B
Tue May 15, 2007 8:44 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: time stamp conversion
Replies: 19
Views: 7432

Do you have two spaces between the Month and Day in all your date fields or just a few?
by DSguru2B
Tue May 15, 2007 8:33 am
Forum: General
Topic: SQLServer has NChar but Datastage does not have NLS
Replies: 1
Views: 1174

Just switch NVARCHAR to VARCHAR and NCHAR to CHAR in your job.
by DSguru2B
Tue May 15, 2007 8:21 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: unlock routine
Replies: 1
Views: 1000

Unlock the routine from DataStage director. Its the same way you unlock a job. Search for more info.
by DSguru2B
Tue May 15, 2007 8:20 am
Forum: General
Topic: Processing files in a directory
Replies: 44
Views: 12719

You gave -warn two times. Only one is needed.
by DSguru2B
Tue May 15, 2007 8:13 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Executing Unix script from routine...
Replies: 3
Views: 1512

What is Arg in your routine? Is it really Arg or Arg1.
Plus you need a space between ksh +x and your argument.

Code: Select all

Command="ksh +x ":Arg:"/InputFilesCount.sh"
by DSguru2B
Tue May 15, 2007 8:10 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Conditional job abort
Replies: 5
Views: 2793

The easiest method, without much custom coding, is thompsonp's method. This way will cause and immediate abort and prevent further stages to execute.
by DSguru2B
Tue May 15, 2007 8:06 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Writing in to a sequential file trhru routine
Replies: 22
Views: 8125

This is'nt the entire code is it? WHere are you opening the file (OPENSEQ) for writing. Plus, I dont think you need a WEOFSEQ. All you need to do is OPENSEQ 'myfilename' to FILE ELSE ABORT LOOP WRITESEQ ..... END LOOP CLOSESEQ FILE This is just to give you a general idea. Its not complete code. Does...
by DSguru2B
Tue May 15, 2007 7:57 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Calling user-defined Oracle function
Replies: 4
Views: 963

But would'nt a lookup mean that the function return should have a matching key with the incoming data?
by DSguru2B
Mon May 14, 2007 1:29 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: @INROWNUM
Replies: 2
Views: 1040

You should get 'XYZ' everytime for the first incoming record. Change your output to a sequential file. If you have a hashed file then you might be overwriting it due to identical keys.
by DSguru2B
Mon May 14, 2007 12:23 pm
Forum: General
Topic: Processing files in a directory
Replies: 44
Views: 12719

Check the section 'Command Line Interface' in Server Job Developer's Guide.