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

What is ADDR in PL/I and how it is used


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

New User


Joined: 31 Aug 2016
Posts: 74
Location: India

PostPosted: Tue Nov 13, 2018 12:38 am
Reply with quote

Hi,

I am trying to learn PL/I and i am a beginner in this. I am trying to figure out how ADDR works. Can anyone please explain what ADDR does in PL/I and provide an example for better understanding. I know this is very basic question but I have read on IBM manuals but i did not get much from there.

I was going through the below example :
ADDR(Table1) = ADDR(Table2)

Does this means that values of array (Table2) are assigned to the another array named as Table1 ? Please let me know what this declaration means in above example.


Many Thanks in advance for your time !
Back to top
View user's profile Send private message
sergeyken

Senior Member


Joined: 29 Apr 2008
Posts: 2018
Location: USA

PostPosted: Tue Nov 13, 2018 12:51 am
Reply with quote

1) this is senseless expression, and wrong PL/I syntax
2) There is a special forum for beginners
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Tue Nov 13, 2018 1:02 am
Reply with quote

I agree that you really need to be posting in Beginners and Students Forum instead of here.

The ADDR function in PL/I manipulates ADDRESSES -- not data. So if you have a pointer variable P1 and you code
Code:
P1 = ADDR(X) ;
then P1 is set to the address of X. Note that it does NOT matter what the definition of X is, nor does it matter what X contains -- P1 is set to the address in memory of variable X.
Back to top
View user's profile Send private message
Poha Eater

New User


Joined: 31 Aug 2016
Posts: 74
Location: India

PostPosted: Tue Nov 13, 2018 9:15 am
Reply with quote

Thank you for your responses. I was not aware that there is separate forum for Beginners. Going forward i will ask my questions there. Thanks !
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
This topic is locked: you cannot edit posts or make replies. 'UNABLE TO DETERMINE ADDR' CICS 2
No new posts Difference between DEF and BASED ADDR PL/I & Assembler 3
No new posts SQLCODE says NO ADDR when compiled us... Compuware & Other Tools 1
Search our Forums:

Back to Top