Database Reference
In-Depth Information
• In fixed-width files, the width of each field is fixed. The values are separated
from each other by the fixed size of the column defined. There can be issues in
reading the data if the size of each column is not maintained properly. Please see
the following screenshot to understand a fixed-width file.
The width of each field in the file is fixed. See the description of each field:
EMPLOYEE_ID : 4 bytes
FIRST_NAME : 10 bytes
LAST__NAME : 10 bytes
AGE : 2 bytes
JAN_SAL : 10 bytes
FEB_SAL : 10 bytes
LOCATION : 10 bytes
DATE_OF_HIRE : 8 bytes
If the size of a particular value is not equal to the size mentioned, we need to pad
the value with spaces:
Search WWH ::




Custom Search