Stocks ended a wobbly day slightly higher on Wall Street as traders wait for more news on trade talks between the U.S. and China and more in Thursday’s Stock Market Update.

Gains for technology companies and banks outweighed losses in energy and other sectors Thursday. Apple (NASDAQ: AAPL) rose 1.4% and Occidental Petroleum (NYSE: OXY) lost 1.2%.

The sideways trading came as investors looked ahead to a key government report on jobs Friday.

The market got December off to an uneven start this week amid mixed signals on trade. Stocks fell early in the week after President Donald Trump said he wouldn’t mind waiting for a trade deal beyond the 2020 elections. The indexes rebounded Wednesday on a report that Washington and Beijing could be on track for a trade deal before new tariffs are set to hit some popular products, including smartphones, on Dec. 15.

Existing tariffs have been a key sticking point in negotiations and China has been calling for the U.S. to roll back some of them as part of the latest push for a deal.

Meanwhile, investors are also looking for more clarity on the health of the economy from the Labor Department’s November tally of hiring by nonfarm employers.

“You’ve had some mixed economic data this week, so the market probably wants to wait and see what we get tomorrow morning,” said Willie Delwiche, investment strategist at Baird.

Rising bond yields helped steady banks. The sector relies on higher bond yields to charge more lucrative interest on loans. The yield on the 10-year Treasury rose to 1.81% from 1.78% late Wednesday.

Makers and sellers of household goods took some of the heaviest losses. Molson Coors Brewing (NYSE: TAP) slid 1.5% and supermarket operator Kroger (NYSE: KR) fell 3%.

Health care stocks also lost ground. The House plans to hold a vote next week for a bill that would allow Medicare to negotiate prices over costly prescriptions drugs. Alexion Pharmaceuticals (NASDAQ: ALXN) slumped 6.9%.

Retailers also declined. L Brands (NYSE: LB) fell 3.3%.

STOCK MARKET UPDATE

KEEPING SCORE: The S&P 500 rose 4 points, or 0.2% to 3,117. The index is on track for a losing week, but it’s still up 24% for the year. The Dow Jones Industrial Average rose 28 points, or 0.1%, to 27,677. The Nasdaq rose 4 points, less than 0.1%, to 8,570.

Major stock indexes in Europe were mostly lower.

ECONOMY WATCH: Wall Street has been assessing disappointing economic data this week in the lead-up to a highly anticipated jobs report. Economists expect the unemployment rate to hold steady at 3.6%.

Data released on Wednesday showed that the U.S. services sector, which makes up the bulk of the economy, grew at a surprisingly slow pace. That does not bode well as a gauge for the economy while the manufacturing sector continues shrinking.

Payroll processer ADP, on Wednesday, reported that private employers added far fewer jobs in November than economists expected. Job growth has been a strong part of the economy and the report raises doubts ahead of the Labor Department’s more comprehensive update on Friday.

COCKPIT SHUFFLE: United Airlines (NASDAQ: UAL) slipped 0.3% after it said CEO Oscar Munoz is stepping down from his post and will become executive chairman. The airline said that President J. Scott Kirby will be its new CEO.

Munoz led the company through a choppy period, and in 2017 gave up his bonus after the forcible removal of a ticketed passenger led to widespread criticism.

© The Associated Press. All rights reserved.