Quantcast
Channel: IBM Mainframe Computers Forums
Viewing all articles
Browse latest Browse all 9405

COBOL Programming :: RE: Need information on COBOL MOVE CORRESPONDING

$
0
0
Author: Robert Sample
Posted: Wed Jun 29, 2016 12:11 am (GMT 5.5)

Just to make sure you understand, the FD 01 is a BUFFER and as such, it will be cleared each time a record is written. So if you do your WRITE and then attempt to DISPLAY the 01 level, you will see LOW-VALUES since the buffer now points to the next record.

Quote:
I thought MOVE CORRESPONDING is just like separate MOVE but here all identical elements from one structure will move to another structure.
Variables, yes. FILLER, no.
_________________
TANSTAAFL

The first rule of code reuse is that the code needs to be worth re-using.

"We should forget about small efficiencies, say about 97% of the time: premature optimization is the root of all evil." -- Donald Knuth


Viewing all articles
Browse latest Browse all 9405

Trending Articles