Excel spreadsheet load

Post questions here relative to DataStage Server Edition for such areas as Server job design, DS Basic, Routines, Job Sequences, etc.

Moderators: chulett, rschirm, roy

Post Reply
lak4u
Participant
Posts: 43
Joined: Mon Nov 03, 2008 10:00 pm

Excel spreadsheet load

Post by lak4u »

Hi,

I need to create .csv file but I need to leave first 5 rows as empty and load it from 6th row.How can I leave first 5 as empty rows?

Please help

Thanks
asorrell
Posts: 1707
Joined: Fri Apr 04, 2003 2:00 pm
Location: Colleyville, Texas

Post by asorrell »

Easiest way is to use a Before Job ExecDos command to copy a csv file with five empty rows to the correct filename before you start your job. Then have your job append to the file instead of overwriting it.
Andy Sorrell
Certified DataStage Consultant
IBM Analytics Champion 2009 - 2020
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Agreed. I usually want to gravitate to an 'after job' solution but this is better done before.
-craig

"You can never have too many knives" -- Logan Nine Fingers
lak4u
Participant
Posts: 43
Joined: Mon Nov 03, 2008 10:00 pm

Post by lak4u »

asorrell wrote:Easiest way is to use a Before Job ExecDos command to copy a csv file with five empty rows to the correct filename before you start your job. Then have your job append to the file instead of overwriting it.
Hi Andy and Craig

Thanks for your answer.
Post Reply