mY QUESTION IS THAT IF I DONT DECLARE THE SECOND CARIABLE AND WRITE "procedure division using WS-LINK-VAR1" then whether the program will execute successfully?
I feel the number of parameters and their PCITURE clause between the CALLING/CALLED programs must be the same.
It will execute successfully. The number of parms do not have to be the same, but it helps.
1] IF YOUR PARAMETER IN CALLED PROGRAME ARE LESS THEN CALLING PROGRAME THEN SOC4 COMES
2] BUT IF YOU PARAMETER IN CALLING PROGRAME ARE LESS THEN CALLED PROGRAMME THEN MAXCC COMES
1) The risk of a S0C4 is there, but if you don't reference the extra parms, you won't get one.