Hi
I'm new to this forum and I have a requirement where I need to Create a sysin from CSV file dynamically.The requirement is We have a file with every FTp transfer characteristics of a report stored in a CSV file and we would parse the file dynamically in a job to creat the file transfer sysins on the fly based on the key value passed in the job(the key name is the name of a sysin its unique and 8 characters at the begining).The input may be something as .there can be a maximum of 10fields per line and the number of fields in per line is variable that means one line can have 3 transfer parametrs defined next can have five and the length of each field is variable and c',' is the only delimiter and ech string would end with -delsrc
key1,-lqm abcd,-dqm fghf,-spath filnm1,-Dpath1 d:\dfg\,-delsrc,
key2,-lqm abcd,-spath filnm2,-dqm fghy,-dpath2 d:\dfg\ghf\,-delsrc,
My requirement is to parse every line with unique key and then the output would be dynamically parsing every line into the following format.Say the parameter passed in the program is sysin name key2,the dynamic sysin created would be
&&temp with
-lqm abc
-dqm fghy
-spath filnm2
-dpath2 d:\dfg\ghf\[filnm2]
-delsrc
I know it can be done through Parse but I'm confused as the no of fileds in one line are not fixed they can have mutiple trasnfer parameters missing or added .any help would be very much appreciated
Thanks much in Advance
Maddy
I