how to remove box character insequential file

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

sagar deshmukh
Participant
Posts: 103
Joined: Fri Jan 18, 2008 12:55 am
Location: chennai

how to remove box character insequential file

Post by sagar deshmukh »

i am reading a cvs file into a sequential file. but i am getting box character in the output.please let me know if i need to apply any setting for this. :idea:
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

First step would be to determine exactly what this "box character" is, typically by checking with a hex editor to get the hex/octal value, many of which are free downloads.
-craig

"You can never have too many knives" -- Logan Nine Fingers
sagar deshmukh
Participant
Posts: 103
Joined: Fri Jan 18, 2008 12:55 am
Location: chennai

Post by sagar deshmukh »

i belive because of space the box character is comming just need to know the solution how to remove that
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

You need to know what the character is before you can remove or otherwise handle it properly. And do not use private email to ask for help when people here are obviously trying to do exactly that.
-craig

"You can never have too many knives" -- Logan Nine Fingers
sagar deshmukh
Participant
Posts: 103
Joined: Fri Jan 18, 2008 12:55 am
Location: chennai

Post by sagar deshmukh »

i dont have premium membership so i cant read ur post thats y i asked to end it on my mail ID
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

You can see everything I posted.
-craig

"You can never have too many knives" -- Logan Nine Fingers
sagar deshmukh
Participant
Posts: 103
Joined: Fri Jan 18, 2008 12:55 am
Location: chennai

Post by sagar deshmukh »

NO
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Good Lord. YES, you can. :roll:

Regardless, you need to let us know what the actual value of the "box" is, then people can help. Maybe saying it three times will be the charm.
-craig

"You can never have too many knives" -- Logan Nine Fingers
dslisa
Participant
Posts: 24
Joined: Mon Oct 27, 2008 6:48 pm

Post by dslisa »

Hi, sorry to post in an open post but I have the exact same issue and the Hex character is '0D'.

Job design..

Database----------->Xfm----------------->seqfile

The database gets populated with mainframe file and the hex character is coming from that mainframe file. I do not have control over how the file gets populated to the database.
dslisa
Participant
Posts: 24
Joined: Mon Oct 27, 2008 6:48 pm

Post by dslisa »

Hi, sorry to post in an open post but I have the exact same issue and the Hex character is '0D'.

Job design..

Database----------->Xfm----------------->seqfile

The database gets populated with mainframe file and the hex character is coming from that mainframe file. I do not have control over how the file gets populated to the database.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

'0D' is a carriage return, usually a record terminator mismatch DOS to UNIX. Use Convert to remove them:

Code: Select all

Convert(CHAR(13),"",YourField)
If they are in data fields. If it is only at the end of the last field, change from UNIX to DOS terminators in the stage reading the file.
-craig

"You can never have too many knives" -- Logan Nine Fingers
PhilHibbs
Premium Member
Premium Member
Posts: 1044
Joined: Wed Sep 29, 2004 3:30 am
Location: Nottingham, UK
Contact:

Re: how to remove box character insequential file

Post by PhilHibbs »

sagar deshmukh wrote:i am reading a cvs file into a sequential file. but i am getting box character in the output.please let me know if i need to apply any setting for this. :idea:
Are you getting any NLS warnings? If you have NLS-enabled DataStage installation, then try the ISO8859-1+MARKS UTF map on the source Sequential File.
Phil Hibbs | Capgemini
Technical Consultant
wizee
Participant
Posts: 7
Joined: Wed Sep 03, 2008 5:10 pm

Post by wizee »

Thanks Craig, this is resolved for me.
dslisa
Participant
Posts: 24
Joined: Mon Oct 27, 2008 6:48 pm

Post by dslisa »

Me too. Don't know if worked out for Sagar.
dslisa
Participant
Posts: 24
Joined: Mon Oct 27, 2008 6:48 pm

Post by dslisa »

Me too. Don't know if worked out for Sagar.
Post Reply