how to print in next line
Moderators: chulett, rschirm, roy
-
- Participant
- Posts: 85
- Joined: Fri Nov 18, 2005 5:35 am
how to print in next line
Hi everybody,
I have to pass the data to unix.
"hello world" is my input
In unix it should store as hello in one line and world should store in next line
Thx,
I have to pass the data to unix.
"hello world" is my input
In unix it should store as hello in one line and world should store in next line
Thx,
i need to know datastage
Add a line feed (Char(15)) to your derivation to add a line break.
<a href=http://www.worldcommunitygrid.org/team/ ... TZ9H4CGVP1 target="WCGWin">
</a>
</a>
-
- Participant
- Posts: 85
- Joined: Fri Nov 18, 2005 5:35 am
its char(10)
its a char(10)
example :-
col1:char(10):"sam"
in unix o/p is seen like
col1<value>
sam
example :-
col1:char(10):"sam"
in unix o/p is seen like
col1<value>
sam
In Adv Thanks
---------s
---------s
My misteak <sic>; the UNIX LF is CHAR(10)
<a href=http://www.worldcommunitygrid.org/team/ ... TZ9H4CGVP1 target="WCGWin">
</a>
</a>
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
Convert() is more efficient than Ereplace() for single character substitution.
You can gain further efficiency by initializing a stage variable (call it svLF) to Char(10) and not providing a derivation for it for each row. This means that the Char(10) function is evaluated only once.
You can gain further efficiency by initializing a stage variable (call it svLF) to Char(10) and not providing a derivation for it for each row. This means that the Char(10) function is evaluated only once.
Code: Select all
Convert(" ", svLF, InLink.TheString)
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
-
- Participant
- Posts: 85
- Joined: Fri Nov 18, 2005 5:35 am