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
 
What is ADDR in PL/I and how it is used

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> PL/I & Assembler
View previous topic :: :: View next topic  
Author Message
Poha Eater

New User


Joined: 31 Aug 2016
Posts: 45
Location: India

PostPosted: Tue Nov 13, 2018 12:38 am    Post subject: What is ADDR in PL/I and how it is used
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

Active User


Joined: 29 Apr 2008
Posts: 388
Location: Maryland

PostPosted: Tue Nov 13, 2018 12:51 am    Post subject:
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: 8410
Location: Dubuque, Iowa, USA

PostPosted: Tue Nov 13, 2018 1:02 am    Post subject: Reply to: What is ADDR in PL/I and how it is used
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: 45
Location: India

PostPosted: Tue Nov 13, 2018 9:15 am    Post subject:
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    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
This topic is locked: you cannot edit posts or make replies. 'UNABLE TO DETERMINE ADDR' rikdeb CICS 2 Fri Jan 18, 2013 12:10 am
No new posts Difference between DEF and BASED ADDR mistah kurtz PL/I & Assembler 3 Mon Nov 12, 2012 3:37 pm
No new posts SQLCODE says NO ADDR when compiled us... Majid Hussain Compuware & Other Tools 1 Tue Aug 07, 2007 11:15 am

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