MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Diplaying data using address (pointer)

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming
View previous topic :: View next topic  
Author Message
sushil
Beginner


Joined: 18 Apr 2005
Posts: 21
Topics: 11

PostPosted: Mon Feb 13, 2006 10:57 am    Post subject: Diplaying data using address (pointer) Reply with quote

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
View user's profile Send private message
MikeBaker
Beginner


Joined: 04 May 2004
Posts: 96
Topics: 9

PostPosted: Tue Feb 14, 2006 4:10 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group