Search found 78 matches

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

Hi BI-RMA,

I am sorry for the misinterpretation.I had concentrated on changing my existing code in the previous post.
by bhasds
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-
Since A is the output from Unix cmd
will there be any different datatype for that?
Then you can apply the below on the execute command output

Code: Select all

Trim(Convert(@FM,"",ExecuteCommand1.CommandOutput))
Or

Code: Select all

tr -d '\n'

Please let me know if it is not helpfull.
by bhasds
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,
in transformer I wrote functions to get the value
If you are using transformer only to get the value of file1 then you can use the below in the filter option-

Code: Select all

grep "File1"|nawk -F"=" '{print $2}'
by bhasds
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

Hi cutesanju As Craig said if you drop the headers then a little change in the previous code- In derivation, instead of this SV1:"|":SV2:"|":SV3 outputcol Use the below- Total_Data_Count:SV1:"|":File_Count:SV2:"|":Filter_Count:SV3 outputcol The other things wi...
by bhasds
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

Hi qutesanju, You may try the below- 1.In stage variable of the transformer- SV1:",":col1 SV1 (initilize with null) SV2:",":col2 SV2(initilize with null) SV3:",":col3 SV3(initilize with null) 2. In derivation- SV1:"|":SV2:"|":SV3 outputcol Execute th...
by bhasds
Thu Nov 15, 2012 10:22 pm
Forum: General
Topic: Parameter Set's value in Unix shell script
Replies: 7
Views: 4471

Hi brupun,

For decrypting the password field values-
Use echo #Parametername# in before or after job subroutine.
The value will be reflecting in the Director log.
by bhasds
Thu Nov 15, 2012 10:13 pm
Forum: General
Topic: Replicate Datasets into another environment
Replies: 2
Views: 1697

Hi cdp,

As a first step you may start with a script using Orchadmin commands.

1.Use orchadmin commands and dump the datasets into ascii files.
2.You can use loop either in unix script or in datastage job to accomplish your requirement.
by bhasds
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

enjoy... :D

Please mark the topic as resolved.
by bhasds
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-

Code: Select all

Field(ToT.Col1,"=",1) ="file1"
or
a grep command in the filter option of the sequential file stage

Code: Select all

grep "file1"
by bhasds
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...
by bhasds
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

we need to get the record into the output as if we are loading a whole record field by field
The above is possible using field function for each column derivation

Code: Select all

Eg-
  Field(SV1,"|",1)  col1
  Field(SV1,"|",2)    col2
by bhasds
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

Hi Hemaarvind1,

You can comapare the entire record with two stage variable.
Eg- if you have col1 and col2 coming from the source

col1:"|":col2 SV1
If then else condition SV2
SV1 SV3
by bhasds
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-

Code: Select all

str(A:"|",B)
In the target sequential file Filter option-

Code: Select all

tr -s '|' '\n'
Please let me know if you are getting the desired output.
by bhasds
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...
by bhasds
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

Hi Jerome,

If I have understood the requirement, you need pass the schema name,table name and key col name as a parameter in the delete statement.

You can store these 3 parameters in a file and pass it from the job sequence as a parameter one by one.

Please let me know if this is helpful.