If so then you have to bind for the sub program and it is enough if you do a precompile, Compile and linkedit the main program. You can't bind the main Non db2 program because there will not be any DBRM created for that program.
If yu have any queries.... Let me know. And also do correct me if Iam wrong somewhere....