Hi Kiranwt,
You need to remove the character ':' in front of the fields defined in the DEFINE command, it will become:
DEFINE
EID(CHAR(1)),
ENM(CHAR(5)),
ECD(CHAR(2)),
ESAL(CHAR(5))
FILE=EMP_FLAT.TXT;
Also, the fields in the input record must match with the DEFINE command. With the above DEFINE command, each record has 13 characters; while in your data file, each record has only 10 characters.
Thomas
Hi Kiranwt,
You need to remove the character ':' in front of the fields defined in the DEFINE command, it will become:
DEFINE
EID(CHAR(1)),
ENM(CHAR(5)),
ECD(CHAR(2)),
ESAL(CHAR(5))
FILE=EMP_FLAT.TXT;
Also, the fields in the input record must match with the DEFINE command. With the above DEFINE command, each record has 13 characters; while in your data file, each record has only 10 characters.
Thomas