You do not mention the hardware/software you are using.
On an iSeries you can
CRTPF &LIB/*FILE RCDLEN(x) where x = the number of bytes in a single record in the file.
Last Wiki Answer Submitted: November 10, 2010 9:29 pm by CharlieBrowne32,905 pts.
All Answer Wiki Contributors: CharlieBrowne32,905 pts.
If you live outside the United States, by submitting your email address you consent to having your personal data transferred to and processed in the United States.
Please provide more details, What application are you using? What version? What is it you are trying to accomplish by creating a flat file? Thanks.