CLEAR.FILE is absolute. ALL records are removed from the file.
Every log event has a TIMESTAMP field so you could use a DELETE statement constraining on that.
Search found 53125 matches
- Sun Feb 14, 2016 2:40 am
- Forum: General
- Topic: Clear the log from commadline based on number of days
- Replies: 1
- Views: 706
- Thu Feb 11, 2016 3:31 pm
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: Converting StringToDecimal and back DecimalToString
- Replies: 9
- Views: 4175
- Thu Feb 11, 2016 3:25 pm
- Forum: IBM QualityStage
- Topic: Does AVI populate any Time Zone information in output field?
- Replies: 13
- Views: 7781
- Thu Feb 11, 2016 12:06 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: Challenging design problem
- Replies: 9
- Views: 3353
- Wed Feb 10, 2016 11:47 pm
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: Challenging design problem
- Replies: 9
- Views: 3353
- Wed Feb 10, 2016 9:20 pm
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: Restructuring of data
- Replies: 2
- Views: 1204
- Wed Feb 10, 2016 4:19 pm
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: input Column 0 value to NULL in target
- Replies: 4
- Views: 2159
Makes no difference to what Craig suggested.
You'll need to convert the string to a date if it's valid, otherwise set the value to null. Do these things in a Transformer stage.
Something like:
You'll need to convert the string to a date if it's valid, otherwise set the value to null. Do these things in a Transformer stage.
Something like:
Code: Select all
If (IsValid(InLink.TheString, "date")) Then StringToDate(InLink.TheString) Else SetNull()- Wed Feb 10, 2016 4:17 pm
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: Address verification interface on grid
- Replies: 8
- Views: 3732
- Wed Feb 10, 2016 4:09 pm
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: Label Value Processing
- Replies: 1
- Views: 811
So, ignoring the header for the moment, all you really need to do is to process label/value pairs. This is very similar to processing name/value pairs (for example in Hadoop) so should be very straightforward. Use stage variables to capture the values from the header rows to build your record struct...
- Wed Feb 10, 2016 2:06 am
- Forum: General
- Topic: Jobs Runtimes
- Replies: 3
- Views: 1806
- Wed Feb 10, 2016 2:04 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: Delimiter issue in file
- Replies: 1
- Views: 984
- Tue Feb 09, 2016 4:24 pm
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: Address verification interface on grid
- Replies: 8
- Views: 3732
- Tue Feb 09, 2016 4:22 pm
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: Challenging design problem
- Replies: 9
- Views: 3353
- Tue Feb 09, 2016 4:20 pm
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: Null handling for CHAR + nullable field
- Replies: 8
- Views: 3711
- Tue Feb 09, 2016 4:16 pm
- Forum: General
- Topic: Prorammatically create a parallel job
- Replies: 2
- Views: 1309