in reply to Print selected records only?

This sounds suspiciously like homework, so I'll give you a hint.

Look up $/

Good Luck

Sweetblood