Hi BI-RMA,
I am sorry for the misinterpretation.I had concentrated on changing my existing code in the previous post.
Search found 78 matches
- Mon Nov 19, 2012 3:31 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: New line character
- Replies: 7
- Views: 2400
- Sun Nov 18, 2012 12:14 pm
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: Comparing stage variables in transformer
- Replies: 1
- Views: 1438
If you have doubt on-
Or
Please let me know if it is not helpfull.
Then you can apply the below on the execute command outputSince A is the output from Unix cmd
will there be any different datatype for that?
Code: Select all
Trim(Convert(@FM,"",ExecuteCommand1.CommandOutput))
Code: Select all
tr -d '\n'
Please let me know if it is not helpfull.
- Sat Nov 17, 2012 11:36 pm
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: Getting a particular record (looping)
- Replies: 9
- Views: 4319
Hi wittyme,
If you are using transformer only to get the value of file1 then you can use the below in the filter option-in transformer I wrote functions to get the value
Code: Select all
grep "File1"|nawk -F"=" '{print $2}'
- Sat Nov 17, 2012 9:41 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: New line character
- Replies: 7
- Views: 2400
- Sat Nov 17, 2012 3:29 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: New line character
- Replies: 7
- Views: 2400
- Thu Nov 15, 2012 10:22 pm
- Forum: General
- Topic: Parameter Set's value in Unix shell script
- Replies: 7
- Views: 4471
- Thu Nov 15, 2012 10:13 pm
- Forum: General
- Topic: Replicate Datasets into another environment
- Replies: 2
- Views: 1697
- Thu Nov 15, 2012 4:22 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: Pivot Date...
- Replies: 4
- Views: 1658
- Thu Nov 15, 2012 1:09 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: Getting a particular record (looping)
- Replies: 9
- Views: 4319
Hi wittyme,
You may also use a constraint in the transformer-or
a grep command in the filter option of the sequential file stage
You may also use a constraint in the transformer-
Code: Select all
Field(ToT.Col1,"=",1) ="file1"
a grep command in the filter option of the sequential file stage
Code: Select all
grep "file1"
- Tue Nov 13, 2012 11:51 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: Pivot Date...
- Replies: 4
- Views: 1658
Hi praburaj, Although I do not have datastage in front of me as of now, you can try the below- In Stage Variable- juliandayfromdate(EndDate)-JulianDayfromdate(StartDate) SV1 In Loop condition- @iteration<=SV1+1 In Loopvariable if @iteration=1 then StartDate else DateFromJulianDay(JulianDayfromdate(S...
- Sun Nov 11, 2012 3:16 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: previous record to output file
- Replies: 7
- Views: 4418
The above is possible using field function for each column derivationwe need to get the record into the output as if we are loading a whole record field by field
Code: Select all
Eg-
Field(SV1,"|",1) col1
Field(SV1,"|",2) col2
- Sun Nov 11, 2012 3:05 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: previous record to output file
- Replies: 7
- Views: 4418
- Thu Nov 08, 2012 1:46 pm
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: how to print below requirement
- Replies: 14
- Views: 7246
Hi Stuartjvnorton,
Try the below-
In the output derivation for A in trnsformer-
In the target sequential file Filter option-
Please let me know if you are getting the desired output.
Try the below-
In the output derivation for A in trnsformer-
Code: Select all
str(A:"|",B)
Code: Select all
tr -s '|' '\n'
- Thu Nov 08, 2012 7:03 am
- Forum: General
- Topic: Email Notification Activity
- Replies: 5
- Views: 3428
Hi Cipsy, You can keep a User Variable activity in between the Sequnecer and the Notification activity. In Uservaribale activity- Jobname If Job_Activity1.$JobStatus =3 Then Job_Activity1.$JobName Else If Job_Activity2.$JobStatus =3 Then Job_Activity2.$JobName Else If Job_Activity3.$JobStatus=3 Then...
- Tue Nov 06, 2012 10:38 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: Parameter in WHERE clause
- Replies: 23
- Views: 9384