There are many samples that are shipped with DB2. You can find these samples at:
These samples covers a wide spectrum of languages like C, C++, JDBC, SQLJ, PHP, .Net, Perl, XML, SQL, VB, VC, Python etc.
These samples covers most of the new features of DB2. For example LBAC, Row Compression, Table Partitioning etc. You can use these samples as a reference, as help for coding your application, to understand any DB2 feature, to find alternate ways of doing things and so on. These samples are very useful for students and novice users. We also have some basic samples like 'How to read,insert,update,delete data from tables', 'How to use the database', 'How to use and create indexes', 'How to create and use stored procedures, functions etc' etc.
Apart from these samples, you can also find many utilities like Util* files(usable functions for establishing connection, disconnect from database, printing error message, error handling etc), bld* files(to pre-compile, compile and link the applications, so in a single command, you can prepare and compile your application for execution)
Have a look at the samples and give your feedback here.