Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
AWS Degraded - You may experience Community slowness, timeouts, or trouble accessing: LATEST HERE
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Adding a carriage return to each row of file - tFileOutputpositonal

Hi,

I am querying a database and writing the resultset to a file using tFileOutputpositional.

I need to add a carriage return towards the end of each row. Could you please let me know how to accomplish this?
I see there is a Row Separator field in tFileOutputpositional component with default as "\n". Should this be changed? If so what would this be changed to?
Labels (2)
1 Solution

Accepted Solutions
Sid3
Contributor III
Contributor III

use "\r\n"

 

\r - new row

\n - new line

 

use it in combination. it should work.

 

else

 

try doing "\n\n", I have not tested yet, try it out.

View solution in original post

4 Replies
Sid3
Contributor III
Contributor III

Please follow the below screenshot. Add "\n" in your row separator property.

 

Image result for tfileoutputpositional

 

Mark as solution if this resolved your issue

Anonymous
Not applicable
Author

Hi Sid4U,

 

Thanks for replying. \n is for new line (which is the default value already available) , while I am expecting carriage return (not new line feed). I guess both are different. 

Sid3
Contributor III
Contributor III

use "\r\n"

 

\r - new row

\n - new line

 

use it in combination. it should work.

 

else

 

try doing "\n\n", I have not tested yet, try it out.

Anonymous
Not applicable
Author

This worked!! Thanks!