Look, I don't understand what you mean, I haven't from the start. To access a DB2 table from a Cobol program you need some stuff. The DB Table is and always will be in the database.
Unless you can be more specific in your question, I can't answer further as I can't read your mind.