Removeing of carriage return value from XML 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

Post Reply
bunu1977
Participant
Posts: 35
Joined: Thu Oct 16, 2003 4:46 am

Removeing of carriage return value from XML file

Post by bunu1977 »

Hi,
I am creating a xml file in unix.By default datastage is generating a file as

<tag1>
value
</tag1>

But as per the requirement, the tags should appear as <tag1>value</tag1>

Can I do it in datastage or I need to use the sed command in unix to replace the carriage return values after creating the file?
can any one tell me what is the exact command for this in unix?
Dilip Das
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Uncheck the 'Generate Formatted Output' option.
-craig

"You can never have too many knives" -- Logan Nine Fingers
bunu1977
Participant
Posts: 35
Joined: Thu Oct 16, 2003 4:46 am

hi

Post by bunu1977 »

I ll try it on Monday and let you know.
chulett wrote:Uncheck the 'Generate Formatted Output' option.
Dilip Das
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

We'll be here!
-craig

"You can never have too many knives" -- Logan Nine Fingers
bunu1977
Participant
Posts: 35
Joined: Thu Oct 16, 2003 4:46 am

Post by bunu1977 »

Hi,
Thanks. It is replacing the carraige return characters now.
chulett wrote:We'll be here!
Dilip Das
Post Reply