You are viewing this site as a guest. You can still ask questions and help others! Join our Dev2Dev IT Community to receive your own blog, share your knowledge, and much more.

CSV file header

4 replies [Last post]
Guest's picture
Guest

Is it possible for a csv file to have a header like that of a pdf file? if yes, how? do anybody know the syntax? thanks! :)

Ashar's picture
User offline. Last seen 4 years 46 weeks ago. Offline
Joined: 03/26/2008
Posts: 227
Re: CSV file header

This is what i used in one of the SQRs..

encode ',' into $sep
String 'Emplid' 'Name' 'Designation' 'location' by $sep into $printheading
write 1 from $printheading

where 1 is the number assigned in the OPEN command to the file to be written..

Guest's picture
Guest (not verified)
Re: CSV file header

thanks for the prompt reply. this one has been a great help to me. ;)

Ashar's picture
User offline. Last seen 4 years 46 weeks ago. Offline
Joined: 03/26/2008
Posts: 227
Re: CSV file header

You're welcome.. Glad to know that it worked..

Peter.Wan's picture
User offline. Last seen 11 years 22 weeks ago. Offline
Joined: 08/13/2009
Posts: 9
Re: CSV file header

Thank you for your share!
Peter.Wan