Problem with Schema file

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
Jayesh_09
Participant
Posts: 21
Joined: Wed Apr 07, 2004 10:09 am
Contact:

Post by Jayesh_09 »

datisaq,

Where is your DataStage server installed.



Regards
Jay
datisaq
Participant
Posts: 154
Joined: Wed May 14, 2008 4:34 am

Post by datisaq »

Both the client and server components are installed on my local machine...
IBM Certified - Information Server 8.1
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post 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.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post 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,};)
-craig

"You can never have too many knives" -- Logan Nine Fingers
datisaq
Participant
Posts: 154
Joined: Wed May 14, 2008 4:34 am

Post 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...
IBM Certified - Information Server 8.1
datisaq
Participant
Posts: 154
Joined: Wed May 14, 2008 4:34 am

Post 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...
IBM Certified - Information Server 8.1
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Try quote=none rather than quote='none'
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Or 'null'. :wink:
-craig

"You can never have too many knives" -- Logan Nine Fingers
abc123
Premium Member
Premium Member
Posts: 605
Joined: Fri Aug 25, 2006 8:24 am

Post by abc123 »

Should
final_delim=end
be
final_delim='end'?
datisaq
Participant
Posts: 154
Joined: Wed May 14, 2008 4:34 am

Post 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...
IBM Certified - Information Server 8.1
mdbatra
Premium Member
Premium Member
Posts: 175
Joined: Wed Oct 22, 2008 10:01 am
Location: City of London

Post 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
Rgds,
MB
mdbatra
Premium Member
Premium Member
Posts: 175
Joined: Wed Oct 22, 2008 10:01 am
Location: City of London

Post 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!
Rgds,
MB
Post Reply