TheStreet's founder and Action Alerts PLUS Portfolio Manager Jim Cramer was pleased with Caterpillar's (CAT) rolling 3-month retail sales numbers, which were released on Wednesday.

Total machines retail sales rose 24% year-over-year as of May.

"I do like Caterpillar longer-term," Cramer said.

Want exclusive investing insight from Jim Cramer? Get 24/7 access to Jim's charitable trust portfolio with a free trial to Action Alerts PLUS!

More from Video

Earnings Tuesday: Caterpillar Beat, McDonald's Beat, what it all Means

Earnings Tuesday: Caterpillar Beat, McDonald's Beat, what it all Means

The Key to Navigating the Current Market: a Clear Head

The Key to Navigating the Current Market: a Clear Head

Jim Cramer Gets Quizzed on Cannabis

Jim Cramer Gets Quizzed on Cannabis

History With a Side of Fries? Inside McDonald's Storied Past

History With a Side of Fries? Inside McDonald's Storied Past

How Did Caterpillar Get Its Name?

How Did Caterpillar Get Its Name?