Thread: COBOL

MOVE CORRESPONDING vs plain MOVE - beginner advice?

Started by Jordan • user3 replies149 viewsLast activity 3 weeks ago
Post #1
0 votes
Jordan
Reputation
12
Posts: 32
Joined: May 2, 2026, 11:10 AM
Posted: Jul 22, 2026, 11:44 AM

Saw MOVE CORRESPONDING in old code. Should I use that or just MOVE field by field while I am learning?

Post #2
0 votes
Marty
Reputation
412
Posts: 58
Joined: Aug 12, 2024, 9:14 AM
Posted: Jul 22, 2026, 2:44 PM

While learning, MOVE field by field. CORRESPONDING only moves matching elementary names and silently skips mismatches. Fine when you know the layouts cold. Easy to get burned when learning.

Post #3
1 votes
Rick
Reputation
302
Posts: 22
Joined: Jun 14, 2024, 9:41 AM
Posted: Jul 22, 2026, 6:44 PM

Seconded. Explicit MOVEs make reviews easier too.

You must be signed in to reply to this thread