Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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
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    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

Garry Carroll

Active Member


Joined: 08 May 2006
Posts: 995
Location: Dublin, Ireland / Edinburgh, Scotland

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
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> PL/I & Assembler All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts retrieving envelope information out o... VintageReceiver TSO/ISPF 6 Thu Aug 10, 2017 8:13 pm
No new posts Dynamic array request/response contai... Suja.Sai CICS 2 Tue Jan 24, 2017 11:37 am
No new posts Unstring list of values into an array. Roshnii COBOL Programming 8 Mon Jun 27, 2016 6:25 pm
No new posts COBOL Program to Read Array data raj4neo COBOL Programming 8 Sat Aug 15, 2015 12:28 am
No new posts Checking for High-Values in an array amitc23 COBOL Programming 10 Wed Aug 05, 2015 4:09 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us