I have been given the task to e-mail 480 stores with SQL outputs. Currently I have set-up an INFORMIX 7 SE SQL to pick up the stores and pipe the output to a file.
So far so good. But the output from the file is wrong and I need to re-arrange the text into some sort of E-mail name and seperate each one into a file of it's own.
I have had a look at the cut and paste commands from a book somone has lent me. And have started from scratch trying to piece together a KSH script to do the job.
The data from the database in the file that I created from the SQL looks like this:
location lname - (001) store sname
location lname - (002) store sname
etc... 480 times.
The e-mail address is in this format:
locationlname001.sname@storesname.co.uk
Any pointers on how I can achieve this ?
Thanks in advance.
So far so good. But the output from the file is wrong and I need to re-arrange the text into some sort of E-mail name and seperate each one into a file of it's own.
I have had a look at the cut and paste commands from a book somone has lent me. And have started from scratch trying to piece together a KSH script to do the job.
The data from the database in the file that I created from the SQL looks like this:
location lname - (001) store sname
location lname - (002) store sname
etc... 480 times.
The e-mail address is in this format:
locationlname001.sname@storesname.co.uk
Any pointers on how I can achieve this ?
Thanks in advance.