Page 1 of 1

Posted: Mon Oct 27, 2008 7:53 am
by Jayesh_09
datisaq,

Where is your DataStage server installed.



Regards
Jay

Posted: Mon Oct 27, 2008 8:28 am
by datisaq
Both the client and server components are installed on my local machine...

Posted: Mon Oct 27, 2008 8:30 am
by ray.wurlod
The bit at the end is a worry, an unneeded comma after quote=none and no terminating semi-colon for the final field definition.

Posted: Mon Oct 27, 2008 8:35 am
by chulett
Looks like this without smilies turned on, does that help?

record{final_delim=end, record_delim='\n', delim='|', quote='null', padchar='#'}(Empno:int32 {quote=none};Ename:string[max=255] {prefix=2};Salary:int32 {quote=none,};)

Posted: Mon Oct 27, 2008 11:24 am
by datisaq
Thanks Ray and Craig, i've removed the comma and kept semicolon at the end also but the same error persists.

My input file looks like this:

Empno|Ename|Salary
200084|Issaq|23455
200116|Tanmoy|29555
100002|Thomas|45999

And my schema file:

record
{final_delim=end, record_delim='\n', delim='|', quote='null', padchar='#'}
(
Empno:int32 {quote=none};
Ename:string[max=255] {prefix=2};
Salary:int32 {quote=none,};
)

Do i need to set anything in the format tab or properties tab of sequential file stage?

please help me out...

Posted: Mon Oct 27, 2008 11:26 am
by datisaq
Thanks Ray and Craig, i've removed the comma and kept semicolon at the end also but the same error persists.

My input file looks like this:

Empno|Ename|Salary
200084|Issaq|23455
200116|Tanmoy|29555
100002|Thomas|45999

And my schema file:

record
{final_delim=end, record_delim='\n', delim='|', quote='null', padchar='#'}
(
Empno:int32 {quote=none};
Ename:string[max=255] {prefix=2};
Salary:int32 {quote=none};
)

Do i need to set anything in the format tab or properties tab of sequential file stage?

please help me out...

Posted: Mon Oct 27, 2008 2:29 pm
by ray.wurlod
Try quote=none rather than quote='none'

Posted: Mon Oct 27, 2008 2:32 pm
by chulett
Or 'null'. :wink:

Posted: Tue Oct 28, 2008 9:16 am
by abc123
Should
final_delim=end
be
final_delim='end'?

Posted: Wed Oct 29, 2008 11:00 am
by datisaq
I tried with all the various possibilities what you people have suggest?
But i ended up with the same result...

Can anyone give me a schema file according to the sample data file i've shown in my previous replies?

I'll be very much grateful to you guys...

Posted: Thu Oct 30, 2008 1:34 am
by mdbatra
Try with removing Column heading from ur input File like below:

200084|Issaq|23455
200116|Tanmoy|29555
100002|Thomas|45999

In the File Stage Properties:
1. Set 'First line column names' = False
2. Keep RCP enabled
3. Provide schema file

Posted: Thu Oct 30, 2008 1:49 am
by mdbatra
Also,if the aboce does'nt work, just read from the original file, provide metadata for the same on Columns Tab & load it into another seq file.

Now,after running the job, u can check the log in director. In one of the status messages, schema would be generated for the input file.
Will surely work!