if CR/LF characters are supplied, they must always occur together as a coupled pair and be on the end of each record, or the CR/LF coupled pair of characters may occur on the last record as the last two characters only. In this case, all preceding records must not have CR/LF characters. A special case can occur if only one coupled pair CR/LF is used in conjunction with an EOF character where the last three characters will be CR/LF/EOF (see b above). CR/LF and EOF characters are not part of the data supplied and, if used, must be additional characters to the record length. Record length (character position 1-3) in all records must be set to 996. A simple check can be used to ensure that the record length of a fixed length file is correct. The length of the file supplied to the ATO must be a multiple of the fixed record length. For example, for files that do not contain CR/LF at the end of each record: File record length is 996 characters Length of the file = 74,700 74,700 / 996 = 75 and 0 remainder Therefore the file is OK File record length is 996 characters Length of the file = 8000 8000 / 996 = 8 and 32 remainder Therefore there is an error in the file. For example, for that contain CR/LF at the end of each record (this is only a check of the file length and the 998 characters must only be used for division. All record lengths in the data must be 996): File record length is 998 characters (record 996 + CR/LF 2) Length of the file = 9980 9980 / 998 = 10 and 0 remainder Therefore the file is OK File record length is 998 characters (record 996 + CR/LF 2) Length of the file = 8000 8000 / 998 = 8 and 16 remainder Therefore there is an error in the file If an error in the division occurs, the file must be corrected before it is sent to the ATO. Examples of errors that may occur:
if CR/LF characters are supplied, they must always occur together as a coupled pair and be on the end of each record, or the CR/LF coupled pair of characters may occur on the last record as the last two characters only. In this case, all preceding records must not have CR/LF characters. A special case can occur if only one coupled pair CR/LF is used in conjunction with an EOF character where the last three characters will be CR/LF/EOF (see b above). CR/LF and EOF characters are not part of the data supplied and, if used, must be additional characters to the record length. Record length (character position 1-3) in all records must be set to 996. A simple check can be used to ensure that the record length of a fixed length file is correct. The length of the file supplied to the ATO must be a multiple of the fixed record length. For example, for files that do not contain CR/LF at the end of each record: File record length is 996 characters Length of the file = 74,700 74,700 / 996 = 75 and 0 remainder Therefore the file is OK File record length is 996 characters Length of the file = 8000 8000 / 996 = 8 and 32 remainder Therefore there is an error in the file. For example, for that contain CR/LF at the end of each record (this is only a check of the file length and the 998 characters must only be used for division. All record lengths in the data must be 996): File record length is 998 characters (record 996 + CR/LF 2) Length of the file = 9980 9980 / 998 = 10 and 0 remainder Therefore the file is OK File record length is 998 characters (record 996 + CR/LF 2) Length of the file = 8000 8000 / 998 = 8 and 16 remainder Therefore there is an error in the file If an error in the division occurs, the file must be corrected before it is sent to the ATO. Examples of errors that may occur: