sinmani wrote:If by mistake while coding I MOVE a working storage variable into LINKAGE area. What will happen??
will I get compilation error?
What when i try to pass values through linkage section?
I understand you to have coded something like
DATA DIVISION.
WORKING-STORAGE SECTION.
01 WS-FOO PIC X(9).
01 WS-BAR PIC 9(9).
LINKAGE SECTION.
01 PARM PIC 9(9)
PROCEDURE DIVISION.
A-PARAGRAPH.
MOVE WS-FOO TO PARM
* SHOULD HAVE BEEN "MOVE WS-BAR TO PARM"
whereas Messrs. Boyo and Sample seem to understand you as having coded
DATA DIVISION.
WORKING-STORAGE SECTION.
01 WS-BAR PIC 9(9).
LINKAGE SECTION.
01 PARM PIC 9(9).
01 WS-FOO PIC X(9).
* SHOULD HAVE GONE IN WORKING-STORAGE SECTION.
Please explain which it is.
"You have sat too long for any good you have been doing lately ... Depart, I say; and let us have done with you. In the name of God, go!" -- what I say to a junior programmer at least once a day