regarding merge stage

Post questions here relative to DataStage Server Edition for such areas as Server job design, DS Basic, Routines, Job Sequences, etc.

Moderators: chulett, rschirm, roy

vijaykumar
Participant
Posts: 228
Joined: Tue Oct 03, 2006 7:08 pm

regarding merge stage

Post by vijaykumar »

Hi,

my design is MERGE----->ODBC.

using merge stage iam merging 2 sequential files and dumping into database.
i have declared the path of the sequential files as parameter.

FIRST FILE DIRECTORY PATH: #$PATH_FILE#
SECOND FILE DIRECTORY PATH: #$PATH_FILE1#
I specified the first filename: vijay----> the name of the first sequential file.
second filename:salma---->name of the sequential file.
join type---->pure inner join.
input file formats---->first name is the column names.
input column names---> specified the columns.
first file column key--->DEPTNO
second file column Key---->DEPTNO since deptno is column key.
I mapped all the columns from left side to right side, i mapped only deptno from only one sequential file, when i try to map depno from another sequentail file, it says deptno already exists.

please help me Gurus, its compiling but its failing, iam getting LINK RETRIEVAL ERROR.

please help me gurus.

cheers;
vijay
vijaykumar
Participant
Posts: 228
Joined: Tue Oct 03, 2006 7:08 pm

Post by vijaykumar »

Hi Gurus,

My sequential file location is c:\HashFiles\salma

where salma is the name of the sequential file

Another sequential file location is c:\Hashfiles\hash\vijay

where vijay is the name of the another sequential file.

when dealing with merge stage.
First file directory path: c:\HashFiles

second file directory path: c:\ Hashfiles\hash
In the first file name i specified
c:\HashFiles\salma
second file name i specified
c:\Hashfiles\hash\vijay.
iam getting error- cannot open input file, cannot retrieve link properties.

Please help me Gurus.

cheers;
vijay
narasimha
Charter Member
Charter Member
Posts: 1236
Joined: Fri Oct 22, 2004 8:59 am
Location: Staten Island, NY

Post by narasimha »

You cannot add columns with the same name into column list.
When you try to drag a column with the same name it complains and asks you to specify a differet name. Give a different name.
You should be fine.
Narasimha Kade

Finding answers is simple, all you need to do is come up with the correct questions.
kumar_s
Charter Member
Charter Member
Posts: 5245
Joined: Thu Jun 16, 2005 11:00 pm

Post by kumar_s »

Hi Vijay,
Check for the filename and path name. Copy and type for the same value that you had given in the link information.
narasimha - Drag drop functionality is not available in Server Merge stage.
Impossible doesn't mean 'it is not possible' actually means... 'NOBODY HAS DONE IT SO FAR'
narasimha
Charter Member
Charter Member
Posts: 1236
Joined: Fri Oct 22, 2004 8:59 am
Location: Staten Island, NY

Post by narasimha »

kumar_s wrote:narasimha - Drag drop functionality is not available in Server Merge stage.
Kumar,

I am pretty sure Drag drop functionality exists in Server Merge stage. In fact I double checked it now.
Narasimha Kade

Finding answers is simple, all you need to do is come up with the correct questions.
kumar_s
Charter Member
Charter Member
Posts: 5245
Joined: Thu Jun 16, 2005 11:00 pm

Post by kumar_s »

narasimha wrote:
kumar_s wrote:narasimha - Drag drop functionality is not available in Server Merge stage.
Kumar,

I am pretty sure Drag drop functionality exists in Server Merge stage. In fact I double checked it now.
Oh Iam sorry.. then I should be missing it. :oops:
Impossible doesn't mean 'it is not possible' actually means... 'NOBODY HAS DONE IT SO FAR'
vijaykumar
Participant
Posts: 228
Joined: Tue Oct 03, 2006 7:08 pm

Post by vijaykumar »

Hi Gurus,
Still iam getting error, cannot open file1.Please help me Gurus.

cheers;
vijay
us1aslam1us
Charter Member
Charter Member
Posts: 822
Joined: Sat Sep 17, 2005 5:25 pm
Location: USA

Post by us1aslam1us »

Is that a Hashed file you are trying to access or a sequential file???

Make sure the directory paths are correct.
I haven't failed, I've found 10,000 ways that don't work.
Thomas Alva Edison(1847-1931)
narasimha
Charter Member
Charter Member
Posts: 1236
Joined: Fri Oct 22, 2004 8:59 am
Location: Staten Island, NY

Post by narasimha »

vijaykumar wrote:Hi Gurus,
Still iam getting error, cannot open file1.Please help me Gurus.

cheers;
vijay
Did the solution I gave earlier, solve the " LINK RETRIEVAL ERROR" ?
When do you get the "cannot open file1." error?
Narasimha Kade

Finding answers is simple, all you need to do is come up with the correct questions.
Saama
Premium Member
Premium Member
Posts: 83
Joined: Wed Nov 22, 2006 6:42 pm
Location: Pune
Contact:

Post by Saama »

Hi Gurus,

Every thing is working fine. Drag and drop functionality is present.
Its not reading the data from my sequential files.

Actually my designs are

ODBC----->TRANSFORMER----->SEQUENTIAL FILE1
ODBC----->TRANSFORMER------>SEQUENTIAL FILE2
i have dumped the data from odbc into sequential file 1 , i have dumped employee table in seq file1, then i have dumped DEPT table into sequential file2, Now iam merging 2 sequential files using merge stage.
I wanted to view the data from merge stage, the icon is inactive, i can't view the data.
when i went to director to view log message, i can't find any error message.
please help me , why my merge o/p is empty.

cheers;
vijay
narasimha
Charter Member
Charter Member
Posts: 1236
Joined: Fri Oct 22, 2004 8:59 am
Location: Staten Island, NY

Post by narasimha »

Saama wrote:I wanted to view the data from merge stage, the icon is inactive, i can't view the data.
when i went to director to view log message, i can't find any error message.
please help me , why my merge o/p is empty.

cheers;
vijay
You cannot view the data from the Merge Stage.
You need to connect the output of your Merge stage to an output say a sequential file.
You will be able to view your merged data there.
Narasimha Kade

Finding answers is simple, all you need to do is come up with the correct questions.
Saama
Premium Member
Premium Member
Posts: 83
Joined: Wed Nov 22, 2006 6:42 pm
Location: Pune
Contact:

Post by Saama »

Hi,

My design is MERGE----->SEQUENTIAL FILE.

Iam getting the datasource is empty.

Even on the link i can see 0 rows/sec.

That means its not reading the data from my sequential file.

please help me Gurus .

cheers;
vijay
narasimha
Charter Member
Charter Member
Posts: 1236
Joined: Fri Oct 22, 2004 8:59 am
Location: Staten Island, NY

Post by narasimha »

Not sure, where you are going wrong.
You have used a Pure Inner Join which merges only those rows with the same key values in both input files.
Check your Join Type condition. Does it satisfy your criteria?
Narasimha Kade

Finding answers is simple, all you need to do is come up with the correct questions.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Please post the first couple of lines from each of the input files. Please also verify that these are true text files, not hashed files.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
vijaykumar
Participant
Posts: 228
Joined: Tue Oct 03, 2006 7:08 pm

Post by vijaykumar »

Hi Gurus,
I was using the join type incorrect.But Now its ok, when i run this job,
iam getting these error,please help me Gurus.

..Sequential_File_1.IDENT1: At row 2, link "DSLink4", while processing column "DEPTNO1"
Value treated as NULL
Attempt to convert String value "MGR" to Double type unsuccessful.
Attempt to convert String value "COMM" to Double type unsuccessful.
dileep1..Sequential_File_1.IDENT1: Function 'get_next_output_row' failed
At row 4, link "DSLink4", while processing column "DEPTNO1"
Column value must be non NULL.

please help me Gurus.
cheers;
vijay
Post Reply