input value val=xxxxxxxxxAAAAAAAxxxxxBBBBBBBBBBxxxxxxxx
trim(val,'x')
got a result as
AAAAAAAxBBBBBBBBBB.
i have server edition 7.2 with following string functions
syntax Trim(%string%,[%stripchar%],[%option%])
TrimB(%string%)
TrimF(%string%)
Search found 324 matches
- Wed Jun 13, 2007 5:18 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: Trim() with options L, T and B.
- Replies: 20
- Views: 8334
- Tue Jun 12, 2007 11:04 pm
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: Date Validation
- Replies: 5
- Views: 1992
Re: Date Validation
i think you want to check the date format or if the date is valid at execution, i mean to say while you are propogating input data to output.
in tranformer you can check if date is valid, if not you can call an inbuilt routine by Ardent Software, Inc. of sdk UtilityAbortToLog.
in tranformer you can check if date is valid, if not you can call an inbuilt routine by Ardent Software, Inc. of sdk UtilityAbortToLog.
- Tue Jun 12, 2007 10:22 am
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: Oracle Stored Procedure User defined errors
- Replies: 1
- Views: 2136
Re: Oracle Stored Procedure User defined errors
USER-DEFINED ERRORS :The lists should contain both database-specific errors expressed as the integer portion only as well as any user-defined errors that can be returned by the procedure example in your case ORA-20001, so just specify 20001. Now you can use this value for Fatal errors or Warnings. F...
- Sat Jun 09, 2007 2:20 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: one to many relationship in joins
- Replies: 8
- Views: 3118
Re: one to many relationship in joins
hello, i am not aware of parallel Extender, but hope their will be something similar for server edition, stream records and reference..
so you use your child table in stream records and parent table in reference.
so you use your child table in stream records and parent table in reference.
- Thu Jun 07, 2007 12:15 am
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: About Oconv & Iconv
- Replies: 9
- Views: 3154
Re: About Oconv & Iconv
hello, as replied by George it works fine, also by changing data-type of date in OCI stage to timestamp, and without applying any format specification it will work.
- Wed Jun 06, 2007 8:27 am
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: Delete
- Replies: 17
- Views: 5495
Array size : Specifies number of rows to be transfered in one call between datastage server and oracle server before they are written. setting large number use more memory on the client machine, this minimizes round trips and maximizes performance by executing fewer statement. transaction size:speci...
- Wed Jun 06, 2007 6:10 am
- Forum: General
- Topic: Wrong dates in Hash File
- Replies: 9
- Views: 5201
Re: Wrong dates in Hash File
hello i have tried with same case as yours and it works for hash file as well for seq file when i use below conditon input seq file varchar length (40), 2006-11-13-00.52.50.932000 transformer: DSLink36.date1[1,4]:DSLink36.date1[6,2]:DSLink36.date1[9,2] output hash file integer length(10): 20061113 i...
- Mon Jun 04, 2007 10:02 am
- Forum: General
- Topic: AddMonths routine
- Replies: 4
- Views: 2705
Re: AddMonths routine
May be below code meet your requirement, name of routine DETERMINEDAY, with input parameter Arg1 in format 2007-05 or 2007-12. ---------------------------------------------------------------- output format : TEST #1 ******* Arg1 = 2007-05 Test completed. Result = 01/06/2007 -------------------------...
- Sat Jun 02, 2007 4:55 am
- Forum: General
- Topic: Checking For Existing Rows In an Input File Before Executing
- Replies: 4
- Views: 2077
Re: Checking For Existing Rows In an Input File Before Execu
hello i am not aware how job sequencer or Routine_Activity works in datastage, but i think below code will enable you to check the file size, and then do further processing. name of routine: file1 -----------------------code of routine file1--------------------------------- stat='' if Arg1=@null or ...