NEW YORK (AP) -- U.S. stocks are rising Wednesday as gains in health care and media companies put major indexes on track to set more records. Drugmaker Vertex Pharmaceuticals is surging on positive results from potential treatments for cystic fibrosis. Morgan Stanley is rising after the investment bank's trading desks had a good second quarter. The technology component of the Standard & Poor's 500 is at an all-time high.
KEEPING SCORE: The Standard & Poor's 500 index rose 8 points, or 0.3 percent, to 2,469 as of 12:45 p.m. Eastern time. The Dow Jones industrial average made a smaller gain because IBM was sharply lower. The Dow added 21 points, or 0.1 percent, to 21,595. The Nasdaq composite gained 36 points, or 0.6 percent, to 6,380. The Russell 2000 index of smaller-company stocks jumped 10 points, or 0.7 percent, to 1,437. All four indexes have set record highs within the last week.
VERTEX AT THE CENTER: Vertex Pharmaceuticals climbed after it reported strong results from studies of drug regimens that are intended to help hard-to-treat forms of cystic fibrosis. Vertex soared $28.34, or 21.4 percent, to $160.50. That followed a 2.3 percent gain Tuesday after regulators approved a breast cancer treatment the company developed. Vertex's stock has more than doubled this year and it is trading at all-time highs.
Other health care companies also traded higher. Drugmaker Regeneron gained $7.26, or 1.5 percent, to $504.89 while health insurers bounced back. Cigna picked up $1.99, or 1.2 percent, to $174.09 and Aetna added $1.20 to $154.41. Insurers mostly fell Tuesday after the Republican-backed health care bill failed in the Senate.
TV TIE-UP: Scripps Networks and Discovery Communications jumped after the Wall Street Journal reported that the two cable network companies are in talks to combine. Scripps, which owns HGTV, Food Network and Travel Channel, climbed $9.94, or 14.8 percent, to $76.96. Discovery Communications, which runs TLC and Animal Planet, gained $1.05, or 4 percent, to $27.10.
TECH RECORD: Facebook picked up $2.40, or 1.5 percent, to $165.26 and Microsoft advanced 61 cents to $73.91 while Cisco Systems rose 44 cents, or 1.4 percent, to $31.95.
The S&P 500 technology index finally surpassed the peak it reached in late March 2000, at the height of the dot-com boom. That index came close to an all-time high in early June, but then technology companies went into a swoon that lasted about a month. Their recovery over the last two weeks also helped the Nasdaq composite set a new high Tuesday.
DASH OF HOT SAUCE: Spice maker McCormick agreed to buy RB Foods, the food division of Reckitt Benckiser, for $4.2 billion. That will give the company brands including French's mustard and Frank's RedHot. McCormick lost $5.09, or 5.2 percent, to $92.05. Other food companies traded higher. Campbell Soup rose $1.70, or 3.3 percent, to $52.69 and Conagra Brands added 44 cents, or 1.3 percent, to $33.76.
ANY IDEAS, WATSON? IBM posted weaker sales than analysts expected, and its stock dropped $6.86, or 4.5 percent, to $147.14.
ENERGY: Oil prices rose after the U.S. government said fuel stockpiles shrank last week. Benchmark U.S. crude rose 48 cents, or 1 percent, to $46.88 a barrel in New York. Brent crude, the standard for international oil prices, gained 53 cents, or 1.1 percent, to $49.38 per barrel in London. Oil prices have mostly stayed between $40 and $55 a barrel since mid-February of 2016 after they plunged from more than $100 a barrel in mid-2014.
TRADE WINS: Morgan Stanley climbed after the investment bank said its trading businesses did well during the second quarter, a contrast to rival banks which reported poor trading results as market conditions were quiet last quarter. Morgan Stanley rose 94 cents, or 2.1 percent, to $46.08.
BONDS: Bond prices inched lower. The yield on the 10-year Treasury note rose to 2.27 percent from 2.26 percent.
CURRENCIES: The dollar dipped to 111.74 yen from 111.98 yen. The euro fell to $1.1522 from $1.1563.
OVERSEAS: The CAC 40 of France rose 0.8 percent and the British FTSE 100 jumped 0.6 percent. Germany's DAX added 0.2 percent. Japan's Nikkei 225 stock index edged up 0.1 percent and the Hang Seng in Hong Kong climbed 0.6 percent. The South Korean Kospi added 0.2 percent.