All,
I have a file with header, detail & footer.
Detail record is stored in a different file along with row_num. I want to get the min(row_num) and max(row_num) from the file without using aggregator stage. is it possible?
Thanks
Karthik M
Search found 719 matches
- Thu Oct 29, 2015 5:26 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: Min() Max() from a Sequential file
- Replies: 3
- Views: 1873
- Wed Oct 28, 2015 9:14 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: Extract & Save Unknown Headers
- Replies: 1
- Views: 1193
Extract & Save Unknown Headers
All, I have a file with below format. Header --> *H* Detail Trailer --> *T* File should have, *H* <Country Name ....> <Country Name ....> *T* I want to capture where Header <> *H* and Trailer <> *T*. The tricky thing is, I don't know what will come apart from *H* and *T*. If I write like <> *H* , It...
- Wed Oct 28, 2015 8:31 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: Euro Symbol in Datastage
- Replies: 8
- Views: 6934
- Mon Oct 26, 2015 3:15 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: || Symbol - Append Dynamically
- Replies: 11
- Views: 5221
- Sat Oct 24, 2015 11:36 pm
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: || Symbol - Append Dynamically
- Replies: 11
- Views: 5221
I have handled in this way... Trim(header_valid_flagsv : '|' : trailer_valid_flagsv :'|':header_count_flagsv,'|','R') I have created stage variables and assigned values if header_valid_flag <> 'Y' then header_valid_flag else '' so... when it comes to transformer, either the reject reason or ''will c...
- Thu Oct 22, 2015 9:21 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: Stage Variable - Order of execution
- Replies: 8
- Views: 4404
- Thu Oct 22, 2015 8:58 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: || Symbol - Append Dynamically
- Replies: 11
- Views: 5221
not yet expired :) I do understand his solution. But it is at high level. Series of IF statement in Stage variable ? Which function ? 6 stage Variables... first with error message or 'Y' If the first one is <> 'Y' then StageVar1 : '||' : stagevar2 else stagevar2 something like this I have to generat...
- Thu Oct 22, 2015 8:52 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: Euro Symbol in Datastage
- Replies: 8
- Views: 6934
- Thu Oct 22, 2015 8:43 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: Stage Variable - Order of execution
- Replies: 8
- Views: 4404
- Wed Oct 21, 2015 5:47 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: Stage Variable - Order of execution
- Replies: 8
- Views: 4404
Stage Variable - Order of execution
All,
I would like to know the order of execution of stage variables.
Say for example, StageVar1, StageVar2, StageVar3...
Does datastage apply top down or bottom up approach while applying & accessing the values to the stage variables ?
Inputs are welcome!
I would like to know the order of execution of stage variables.
Say for example, StageVar1, StageVar2, StageVar3...
Does datastage apply top down or bottom up approach while applying & accessing the values to the stage variables ?
Inputs are welcome!
- Wed Oct 21, 2015 4:53 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: || Symbol - Append Dynamically
- Replies: 11
- Views: 5221
- Mon Oct 19, 2015 2:52 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: Load Zero Byte File
- Replies: 2
- Views: 2091
Load Zero Byte File
All, I have to load zero byte file into the table whereas the filename and reason as "File is Empty" needs to be loaded into the table. My Job design is something below SeqFile --> Transformer --> TeraData Connector If the Input file is zero byte none of the record will be uploaded into th...
- Sun Oct 18, 2015 11:10 pm
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: || Symbol - Append Dynamically
- Replies: 11
- Views: 5221
It is not part of input, I generate all the reject reasons from the input columns by using stage variables and column comparison and store it in seperate columns. Header_Valid_Flag Footer_Valid_Flag Header_Count_Flag Footer_Count_Flag File_Valid_Flag RecordCnt_Match_Flag The columns will contain eit...
- Sun Oct 18, 2015 8:12 pm
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: || Symbol - Append Dynamically
- Replies: 11
- Views: 5221
|| Symbol - Append Dynamically
All, I have designed a job to capture the reject reason. Say for example, if the file is rejected because of "Header - Batch No is not correct" & "Footer Date format is incorrect". I have to store it something like below Header - Batch No is not correct || Footer Date format ...
- Thu Oct 01, 2015 11:44 pm
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: Compare DSLink1.Column1 = DSLink1.Column5
- Replies: 2
- Views: 2138
Compare DSLink1.Column1 = DSLink1.Column5
All, I think there is some limitation to do comparison as below in the transformer stage column derivation. seqfile ----------> transformer -----------> seqfile DSLink1 DSLink2 In transformer stage, If DSLink1.DTLRowCont = DSLink1.TRLRowCnt then 'FOOTER RECORD COUNT IS MATCHING WITH DETAIL SECTION' ...