IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

How to base a controled array?


IBM Mainframe Forums -> PL/I & Assembler
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
chan2004

New User


Joined: 28 Mar 2007
Posts: 16
Location: India

PostPosted: Mon Aug 25, 2008 10:39 am
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
Garry Carroll

Senior Member


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

PostPosted: Tue Aug 26, 2008 8:54 pm
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
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> PL/I & Assembler

 


Similar Topics
Topic Forum Replies
No new posts COBOL Ascending and descending sort n... COBOL Programming 5
No new posts To find an array of words (sys-symbol... JCL & VSAM 9
No new posts How to move values from single dimens... COBOL Programming 1
No new posts array indexing PL/I & Assembler 4
No new posts COBOL batch program using large size ... COBOL Programming 3
Search our Forums:

Back to Top