Search found 17 matches

by KFajardo
Wed May 27, 2015 2:48 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Problem with Stage Variable Loop
Replies: 1
Views: 1239

Problem with Stage Variable Loop

Hi guys, Good afternoon. I'm having a problem with my stage variable. I am using it as a group #. but the problem is, it is inconsistent. My data is this: 01|XXX 02|XXX 01|XXX 02|XXX 03|XXXX 01|XXX 02|XXX 03|XXXX I want to group it this way: 1 01|XXX 1 02|XXX 2 01|XXX 3 02|XXX 3 03|XXXX 4 01|XXX 4 0...
by KFajardo
Sun May 24, 2015 10:13 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Compare the current row to previous row
Replies: 2
Views: 2585

Thank you,chulett for answering my questions with dedication. I really appreciate it.

And, yes. I really have to study more about stage variables. That's reason why I am asking a lot.

Thanks again. I will check the link.

keith
by KFajardo
Sun May 24, 2015 10:09 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Set the value of a Variable using a Variable
Replies: 5
Views: 2022

I just wonder, if vReference <-- 0 vCheck <-- If InLink.Col1 = 1 Then InLink.Col1 Else vReference When will vReference change in value? For example, if Col1 <> 1, vCheck =vReference; vCheck=0. So, vCheck is always equal to zero whenever the condition is not met? By the way, thank you for the answeri...
by KFajardo
Sun May 24, 2015 9:57 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Blank Rows are not Read by Datastage
Replies: 4
Views: 1981

Ah, sorry for that. I will next time.

OK, blank rows.

In my sequential file, it is only blank.

I think it has a line feed so it is not null.

When i extract in on datastage, Datastage neglects the "blank" rows and proceeds to the next row.
by KFajardo
Sun May 24, 2015 6:22 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Blank Rows are not Read by Datastage
Replies: 4
Views: 1981

Blank Rows are not Read by Datastage

Hi guys,

good evening.

I have a problem on extracting a flat file on datastage.

The blank rows are ignored when extracting the data from a flat file.

is there a way that Datastage will consider those blank rows as NULL?

Any help please?

Thanks,
keith
by KFajardo
Sun May 24, 2015 5:25 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Set all Blank Files to Null
Replies: 1
Views: 967

Set all Blank Files to Null

Hi guys, Good evening. I have a problem with my source. In my source, the data looks like below: Col1 Type02|Group1 Type03|Group1 Type04|Group1 Type01|Group2 Type02|Group2 Type03|Group2 Note: Type01 in the Group1 is missing, so made a condition in the variable that if Col1="" then "Mi...
by KFajardo
Sun May 24, 2015 12:45 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Separately Group Rows then Re-group them in Exact Order
Replies: 9
Views: 2816

Ah! Now I get it! svProect's value is set into a new value everytime the it encounters a "Type1"! Thank you so much ray.wurlod!
I can now distinguish every project separately.

With all my heart, thanks again!

Keith
by KFajardo
Sat May 23, 2015 2:07 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Separately Group Rows then Re-group them in Exact Order
Replies: 9
Views: 2816

This is only a single column singe it is from a flat file. I want to populate the row with the "project" that is located on every type1-line only. So, i want to check on what project does every Other Types (type2, type3, etc...) belongs to.
by KFajardo
Sat May 23, 2015 2:01 pm
Forum: General
Topic: Code on that checks if a file exists in a FTP Server
Replies: 3
Views: 1437

How can i use it on datastage?
by KFajardo
Sat May 23, 2015 12:08 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Set the value of a Variable using a Variable
Replies: 5
Views: 2022

Set the value of a Variable using a Variable

Hi guys,

Is it possible to Set the value of a variable using a variable?

Example:

vReference=0 ; intial value

vCheck=
If Col1=1 then vReference=Col1
Else vReference

Thank you,
keith
by KFajardo
Sat May 23, 2015 11:49 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Compare the current row to previous row
Replies: 2
Views: 2585

Compare the current row to previous row

Hi guys,

is there a way that i can compare the current row to the previous row?

The logic is this:

If CurrentRec = PrevRec
Then
ColumnOut= PrevRec
Else
Current Row

Thanks,
Keith
by KFajardo
Sat May 23, 2015 11:35 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Repeat the value of the first line of each group
Replies: 2
Views: 1124

Repeat the value of the first line of each group

Hi guys, i have a data that looks like this: col1,col2 1,A 2,xxx 3,xx 1,B 2,xxx 1,C 2,xx so, i want to repeat the value of each first line of the group. i want it to look like this: col1,col2,col3 1,A,A 2,xxx,A 3,xx,A 1,B,B 2,xxx,B 1,C,C 2,xx,C I can't find a way to to distribute it on every succeed...
by KFajardo
Fri May 22, 2015 8:09 am
Forum: General
Topic: Code on that checks if a file exists in a FTP Server
Replies: 3
Views: 1437

Code on that checks if a file exists in a FTP Server

Hi guys!

Can you help me on how to check if a file exists in a FTP Server?

I don't have a any idea.

Please help.

Thank you,
Keith
by KFajardo
Thu May 21, 2015 5:04 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Separately Group Rows then Re-group them in Exact Order
Replies: 9
Views: 2816

but i need the project# (that is in each type 1) to be iterated for each row. example: input Type 1|xx|project01 Type 2|xxxxx Type 3|xxxxxx Type 1|xx|project02 Type 2|xxxxx Type 3|xxxxxx it must be: project01|Type 1|xx|project01 project01|Type 2|xxxxx project01|Type 3|xxxxxx project02|Type 1|xx|proj...
by KFajardo
Thu May 21, 2015 3:57 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Separately Group Rows then Re-group them in Exact Order
Replies: 9
Views: 2816

Will i use a Loop here? I have searched the net on my problem and looping seems to be a possible solution. Can you help me on this?

Hoping for your generous help.

-keith