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



Support for OS/VS COBOL, VS COBOL II, COBOL for OS/390 & VM and Enterprise COBOL for z/OS

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

Postby helen2000 » Thu Feb 03, 2011 3:32 am

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
helen2000
 
Posts: 85
Joined: Sat Aug 08, 2009 9:44 pm
Has thanked: 0 time
Been thanked: 0 time

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

Postby dick scherrer » Thu Feb 03, 2011 6:14 am

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?
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6268
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 93 times

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

Postby helen2000 » Thu Feb 03, 2011 9:07 pm

thank you very much, Mr. Dick, I just want to know the concept, I got it right now, thanks again

Helen
helen2000
 
Posts: 85
Joined: Sat Aug 08, 2009 9:44 pm
Has thanked: 0 time
Been thanked: 0 time

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

Postby dick scherrer » Fri Feb 04, 2011 12:06 am

You're welcome - good luck :)

d
User avatar
dick scherrer
Global moderator
 
Posts: 6268
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 93 times


Return to IBM Cobol

 


  • Related topics
    Replies
    Views
    Last post