Partial read of sequential file
Posted: Mon Apr 16, 2007 11:37 pm
I have a requirement to read a number of files that much the following format:
TYPE, DESCRIPTION, col1, col2, col3, ... coln
note: each record in the sequential file is terminated by a Unix newline.
I am trying to create a job that will read all the files at once (using file pattern), but only read in the first two columns, as the data will vary between files.
If I try to read an individual file using a DS Server job, this works a treat - however I don't have the option of picking up files based on a file mask.
In DS Parallel, I can't seem to read in the files (whether referenced individually, or using a mask). The output returns 0 rows.
any thoughts?
-David
TYPE, DESCRIPTION, col1, col2, col3, ... coln
note: each record in the sequential file is terminated by a Unix newline.
I am trying to create a job that will read all the files at once (using file pattern), but only read in the first two columns, as the data will vary between files.
If I try to read an individual file using a DS Server job, this works a treat - however I don't have the option of picking up files based on a file mask.
In DS Parallel, I can't seem to read in the files (whether referenced individually, or using a mask). The output returns 0 rows.
any thoughts?
-David