MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

What does "Based" in PLI mean?

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming
View previous topic :: View next topic  
Author Message
ranga_subham
Intermediate


Joined: 31 Jan 2006
Posts: 255
Topics: 72

PostPosted: Tue May 16, 2006 5:34 am    Post subject: What does "Based" in PLI mean? Reply with quote

Hi,

Would anybody pls explain me what the following code does? How to understand it?

Code:

0 DCL 1 VALUE_INFO BASED(ADDR(VALUE_RECORD)),   
        2 VALUE_BOOK     CHAR(02),             
        2 VALUE_YEAR     CHAR(04),             
        2 VALUE_FILLER   CHAR(78);             


I have started learning PL/I on my own. Any good sites for a beginner?

TIA.
_________________
Ranga
*****
None of us is as smart as all of us - Ken Blanchard
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12378
Topics: 75
Location: San Jose

PostPosted: Tue May 16, 2006 6:51 am    Post subject: Reply with quote

ranga_subham,

Check this link which explains in detail about the Based Storage

http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/C2714602/10.5?DT=20020917160741

Hope this helps...

Cheers

Kolusu

PS: Please use approriate topic titles.
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Cogito-Ergo-Sum
Advanced


Joined: 15 Dec 2002
Posts: 637
Topics: 43
Location: Bengaluru, INDIA

PostPosted: Tue May 16, 2006 9:51 am    Post subject: Reply with quote

ranga_subham,
Do you have COBOL background ? If yes, BASED(ADDR(a_variable)) is similar to REDEFINES in COBOL .
_________________
ALL opinions are welcome.

Debugging tip:
When you have eliminated all which is impossible, then whatever remains, however improbable, must be the truth.
-- Sherlock Holmes.
Back to top
View user's profile Send private message
ranga_subham
Intermediate


Joined: 31 Jan 2006
Posts: 255
Topics: 72

PostPosted: Tue May 16, 2006 10:55 pm    Post subject: Reply with quote

Thanks to Kolusu & Cogito-Ergo-Sum.
_________________
Ranga
*****
None of us is as smart as all of us - Ken Blanchard
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group