View previous topic :: View next topic |
Author |
Message |
mahesh31 Beginner
Joined: 08 Jul 2008 Posts: 5 Topics: 2
|
Posted: Wed Oct 22, 2008 12:56 am Post subject: Cobol using pointers concept |
|
|
Hi,
can any one help me how to use the pointer concept in CObol.
i have two programs. first program has to call second one using pointers.
and second program has to return the values using pointers again.
Please help me on this is very urgent for me. |
|
Back to top |
|
 |
dbzTHEdinosauer Supermod
Joined: 20 Oct 2006 Posts: 1411 Topics: 26 Location: germany
|
Posted: Wed Oct 22, 2008 1:03 am Post subject: |
|
|
pointers can contain the address of an area.
enterprise cobol allows one to set a pointer to an area in working-storage. cobol II, one could only use linkage.
in your calling program you can set a pointer(s) to an area(s), and then pass the pointers with your CALL.
the CALLed program would have 4 linkage items. 2 pointers and two areas. you would set the address of each area to the respective pointer. manipulate the data in the areas within linkage. _________________ Dick Brenholtz
American living in Varel, Germany |
|
Back to top |
|
 |
mahesh31 Beginner
Joined: 08 Jul 2008 Posts: 5 Topics: 2
|
Posted: Wed Oct 22, 2008 2:36 am Post subject: |
|
|
Thanks for the quick reply.. we are using this pointers for CICS/Cobol programs.
if you could send me any sample program for this then that will be of great help.
waiting for the response  |
|
Back to top |
|
 |
Dibakar Advanced

Joined: 02 Dec 2002 Posts: 700 Topics: 63 Location: USA
|
|
Back to top |
|
 |
jhandu Beginner
Joined: 01 Oct 2008 Posts: 6 Topics: 0 Location: India
|
|
Back to top |
|
 |
|
|