Command to import table definition from Sequential File?
Posted: Wed Jun 11, 2008 10:14 am
I'm looking for a DS routine or code that wll create a table definition from a sequential file, without having to do it manually.
ie, can I call a routine somewhere, passing it the information that the 'import table def/seq file definition' needs (directory, file, to folder, delimiter, first line col names, etc), and have the function create the table definition within the repository? i'm trying to avoid having to perform an import table def for every file we receive. Instead, find a routine that will accept the above parms as input, and have the table def created automatically.
The only other option i can think of is to build a *.dsx file(containing the table def) via a new program, then import it into the repository.
Any suggestions or help is appreciated! Thanks!
ie, can I call a routine somewhere, passing it the information that the 'import table def/seq file definition' needs (directory, file, to folder, delimiter, first line col names, etc), and have the function create the table definition within the repository? i'm trying to avoid having to perform an import table def for every file we receive. Instead, find a routine that will accept the above parms as input, and have the table def created automatically.
The only other option i can think of is to build a *.dsx file(containing the table def) via a new program, then import it into the repository.
Any suggestions or help is appreciated! Thanks!