beaditya wrote:I dont understand the concept of fixed width and was wondering why we need Fixed width columns?
Here is my 10 Cents:
There is not much to understand about the concept of it.
Name itself says it is fixed in width. Makes easy interms of coding for the fixed width layout not only in datastage but in many applications.
The fixed field lengths makes consistently readable and easy to apply validations. Since the layout will have boundary length specifications, application doesn't need to worry about handling length of data larger than expected and easy to apply a validation check on whole file to rule out that the file is bad.
Need for them will depends on which application is going to use and how.
Example: Mainframe application.
Usually once the file an application expecting is fixed, there is very less likely that it will have less data issues like lengths and widths.
There is no need of writing fixed width files unless and until an application interface is expecting you to. Becasue they consume more space on the disc and there is going to be need for applying time consuming operations like trimming leading or trailing spaces while reading data and space filling while writing data.
As they consume extra space and time, its not advisible to write fixed width intermediate files in a process.
There could be more advantages that I couldn't think of, hope others will post their ideas.
Kris~