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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

creating header record for data upload

Status
Not open for further replies.

jaw5

ISP
Apr 15, 2008
7
US
I'm creating a file for a data upload that needs 1 header record for the file. how can I make a header record a separate line in a csv file using cognos ?
 
If you're using Impromptu, there is an option to have the first line as a header derived from the field names- select 'save as', choose .csv and then view the options before saving.

soi la, soi carré
 
I'm am using Impromptu, but the only options that are available are "Include column headings", "Quote strings", "Delimiter character", "ASCII value", and the value for end of line (CR LF, LF CR, CR, LF)
 
And "include column headings" is not what you want?

soi la, soi carré
 
This is an import file. I want 1 line for each record in the query, but I need a header line for the file that contains a description of the version of the software that we are importing the file into.

I tried make a main query for the header, with a subreport for all of the detail lines, but the fields in the subreport query also populate the header.

I may just have to add it with a text editor . . .
 
Ah, OK - I was thinking that the "1 header record" referred strictly to a columns (fields) header.
As you say, either use a text editor to prefix the file or use a short batch file/VB code/cognos script to do such automatically.


soi la, soi carré
 
Thanks for all of your help. I really appreciate it. Sorry to be such a newbie!

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top