Portal | IBM Manuals | Downloads | Products | Refer | Info | Programs | JCLs | Forum Rules*| Site Map | Mainframe CD 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index
 
Register
 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index FAQ Search Memberlist Usergroups Profile Log in to check your private messages Log in
 
How to base a controled array?

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> PL/I & ASSEMBLER
Author Message
chan2004

New User


Joined: 28 Mar 2007
Posts: 15
Location: India

PostPosted: Mon Aug 25, 2008 10:39 am    Post subject: How to base a controled array?
Reply with quote

Hi,

I have a module A which calls a module B

In module B, I populate a controlled array and base the address of it to a pointer. this ponter is then passed to the module A

In module A, I create another ctl array of same structure. I want to base the ptr received from module B from the second element of the array declared in module A.

How can I do this?

I tried addr function, but PL1 doesn't allow it to be used as a pseudo variable

thanks
Back to top
View user's profile Send private message
References
Garry Carroll

Active User


Joined: 08 May 2006
Posts: 166
Location: Dublin, Ireland

PostPosted: Tue Aug 26, 2008 8:54 pm    Post subject:
Reply with quote

What you are trying to achieve is unclear.
Quote:
I populate a controlled array and base the address of it to a pointer.


The ALLOCATE of the controlled array gives you the pointer value. You don't base the address to a pointer.

Quote:
I want to base the ptr received from module B from the second element of the array declared in module A.


Again, you don't base the ptr received. How do you receive the pointer? Have you passed a pointer variable from A for B to update?

In any case, this pointer can be used in A to address a structure.

Regards,
Garry.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> PL/I & ASSEMBLER All times are GMT + 6 Hours
Page 1 of 1