Search found 719 matches

by karthi_gana
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

Min() Max() from a Sequential file

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
by karthi_gana
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...
by karthi_gana
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

This issue has been resolved for now by changing euro symbol to "Euro" text.
by karthi_gana
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

do you mean using some kind of IF-THEN-ELSE structure instead of the TRIM at the end?
yes
by karthi_gana
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...
by karthi_gana
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

nope..we can change it to resolved
by karthi_gana
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...
by karthi_gana
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

Ok. I Will try and get back to you.

But the same is displaying as '?' in datastage. When it loaded into Teradata through datastage it is showing some junk character.

where is the issue? It is really tricky for me to identify.

Mainframe? or Unix? or Datastage ? or Database ?
by karthi_gana
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

I usually search here before posting any questions. I missed to do that for this question. :(
by karthi_gana
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!
by karthi_gana
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

I'm sorry for providing lack of info.

I am not still clear on your solution. Can you clarify ?
by karthi_gana
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...
by karthi_gana
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...
by karthi_gana
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 ...
by karthi_gana
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' ...