Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Output file (CSV) - Need to get a "New Line" or "Row" to separate data..

Status
Not open for further replies.

parkesto

Programmer
May 23, 2013
3
CA
Hi all,

I've been scratching my head over this for a while. I have a simple output file ->

print #2, "Old Flags:",Orig_Flag,"New Flags:",New_Flags

Where it's grabbing obviously stored variables (this works fine) and adds the flavour text in "" marks, but I need to add a linebreak in there and I can't seem to figure it out.

Output file displays as ->

Old Flags: Download Flags: LOB: Auto: A Prop: P Comm: Trans: NB: Y Ren: Y End: Y Down Y New Flags: Download Flags: LOB: Auto: A Prop: P Comm: Trans: NB: Y Ren: Y End: Y Down Y

I need

Old Flags: Download Flags: LOB: Auto: A Prop: P Comm: Trans: NB: Y Ren: Y End: Y Down Y
New Flags: Download Flags: LOB: Auto: A Prop: P Comm: Trans: NB: Y Ren: Y End: Y Down Y

Any help would be beyond appreciated.
 
I got it figured out, must not have had enough coffee yesterday.

This is what happens when the web dev guy helps out the reporting people.

For anyone curious you just do ->

print #2, "Old Flags:"
print #2, Orig_Flag
print #2, "New Flags:",New_Flags

And it all spits on it's own line.

Cheers!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top