Page 1 of 1

what does it mean: set address of TB1 to PTR?

PostPosted: Thu Feb 03, 2011 3:32 am
by helen2000
hi, in Cobol: "set address of TB1 to PTR?", my understanding is pointer vairable PTR point to the memory area which table TB1 is loaded, is that right?
by the way, the two sytax: " SET pointer-name TO ADDRESS OF based-item"
"SET ADDRESS OF based-item TO pointer-name" is the same? or something difference, I'm very confuse that, thanks a lot,

helen

Re: what does it mean: set address of TB1 to PTR?

PostPosted: Thu Feb 03, 2011 6:14 am
by dick scherrer
Hello,

Look here:
http://publibz.boulder.ibm.com/cgi-bin/ ... 0/6.2.33.5

and here:
http://publibz.boulder.ibm.com/cgi-bin/ ... 0/5.3.17.8


Do you have something specific you want to use this to accomplish?

Re: what does it mean: set address of TB1 to PTR?

PostPosted: Thu Feb 03, 2011 9:07 pm
by helen2000
thank you very much, Mr. Dick, I just want to know the concept, I got it right now, thanks again

Helen

Re: what does it mean: set address of TB1 to PTR?

PostPosted: Fri Feb 04, 2011 12:06 am
by dick scherrer
You're welcome - good luck :)

d