When creating an unknown course, how to define the training cost (numeric field) as required and must be more than zero.

You can define the training cost as required by setting it at Preferences > Task Plan Global Configurations > Manage Unknown Courses fields. Doing so will automatically force the price to be higher than zero when creating Uknown Courses.