You must specify select ....... assign to database-YourFile-ALWNULL The "0p" file status belongs from null capable fields in the file. Sincerely Domenico Finucci Fiditalia , Milano, 02- 4301-2494 -----Messaggio originale----- Da: Cesar Altamirano [mailto:cesaralt@xxxxxxxxxx] Inviato: martedì 16 dicembre 2003 04.31 A: COBOL AS/400 Oggetto: File Status "0p" Hi, I have created a temporary file through a SQL interactive section. The original data had some comp-3 fields that were selected in the SQL statement. When I open the file in a COBOL program, I get the error, file status "0p". What could be wrong? I work with release V5. Thanks for any help, Regards, Cesar Altamirano _______________________________________________ This is the COBOL Programming on the iSeries/AS400 (COBOL400-L) mailing list To post a message email: COBOL400-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options, visit: http://lists.midrange.com/mailman/listinfo/cobol400-l or email: COBOL400-L-request@xxxxxxxxxxxx Before posting, please take a moment to review the archives at http://archive.midrange.com/cobol400-l.