View previous topic :: View next topic |
Author |
Message |
sushil Beginner
Joined: 18 Apr 2005 Posts: 21 Topics: 11
|
Posted: Mon Feb 13, 2006 10:57 am Post subject: Diplaying data using address (pointer) |
|
|
Is it possible to display data giving the address of the variable. Basically I want to display 100 bytes starting from a particular memory location. how i can achieve that in Cobol.
Problem is that I am passing a variable thru pointer to program B. But what i m passing is not reaching there properly so I want to check through passed bytes within the sending program. Why?? coz using just display the field name is showing me proper value but in the called program something else is been reaching. So I would like to test it that way.
Also it would be a great learning if it is possible in COBOL.
Thanks, _________________ "Making the simple complicated is commonplace; making the complicated simple, awesomely simple, that's creativity." |
|
Back to top |
|
|
MikeBaker Beginner
Joined: 04 May 2004 Posts: 96 Topics: 9
|
Posted: Tue Feb 14, 2006 4:10 pm Post subject: |
|
|
Do a GOOGLE on "directly addressing memory in cobol", and you'll find two PDF articles by Jim Moore about doing this. The only examples you normally see of this type of thing is doing Control Block access, but you can also do exactly what you're asking. Instead of using Hex 0 as in Jim Moore's example, you'll need to substitute your own address value. |
|
Back to top |
|
|
|
|