Beware Mainframe flat files are often initialized to spaces. After conversion using *NOCHK your packed fields may have a value of hex X'404040'. This will not become apparant until an application is run, and you receive an MCH decimal data error. This is because there is no sign on the field. You could check the entire file for this condition, or recompile your programs not to check for decimal errors. Dave

Reply With Quote
irect. The file is 3680 Bytes long, comprising of string and compressed numeric data. I have the layout of the file, although it's in a notation I'm not familiar with, Cobol I think it is, which gives me the start and end position of all the fields, and what type they are. My aim is to get this file from the 400 to a PC, with all the fields, in a CSV format, on a monthly basis as it's received. This solution is an interim one, probably lasting for a few months, no longer than a year. What I've done is set up a physical file, defining all 300 or so fields in the file. I then copy the file received in the Connect