|
View previous topic :: View next topic
|
| Author |
Message |
pinkroses
New User
Joined: 07 Nov 2005 Posts: 19
|
|
|
|
MAINPGM: (NODYNAM)
DISPLAY 'BEFORE CALL'.
CALL 'SUBPGM'
DISPLAY 'AFTER CALL'.
STOP RUN.
SUBPGM: (NODYNAM)
DISPLAY 'IN SUBPGM'
GOBACK.
We have the composite load module MAINPGM, which will display
BEFORE CALL
IN SUBPGM
AFTER CALL
Without changing any of the programs mentioned above, the load should display
BEFORE CALL
CHANGED SUBPGM
AFTER CALL
Expln:
Pgm A calls Pgm B.. without changing both the pgms.. how to get the answer highlighted in red??? Note: all the display statements are hardcoded!! |
|
| Back to top |
|
 |
raghunathns
Active User
.jpg)
Joined: 08 Dec 2005 Posts: 127 Location: rochester
|
|
|
|
edit the load module directly.
find "IN SUBPGM " in load module and replace with "CHANGED SUBPGM "
run the program. |
|
| Back to top |
|
 |
neelesht
New User
Joined: 24 Jul 2006 Posts: 99 Location: Los Angeles
|
|
|
|
Hi PINKROSE,
Please let us know what ans Raghu gave is what you were looking for or is it something else ?
Regards,
Neelesh |
|
| Back to top |
|
 |
PeD
Active User

Joined: 26 Nov 2005 Posts: 459 Location: Belgium
|
|
|
|
| What about the lenghths of "IN SUBPGM " and "CHANGED SUBPGM" !!! |
|
| Back to top |
|
 |
|
|