Veteran entertainer Barry Manilow is to undergo surgery to have part of his lung removed after being diagnosed with cancer.