View previous topic :: View next topic |
Author |
Message |
ranga_subham Intermediate

Joined: 31 Jan 2006 Posts: 255 Topics: 72
|
Posted: Tue May 16, 2006 5:34 am Post subject: What does "Based" in PLI mean? |
|
|
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 |
|
 |
kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12378 Topics: 75 Location: San Jose
|
|
Back to top |
|
 |
Cogito-Ergo-Sum Advanced
Joined: 15 Dec 2002 Posts: 637 Topics: 43 Location: Bengaluru, INDIA
|
Posted: Tue May 16, 2006 9:51 am Post subject: |
|
|
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 |
|
 |
ranga_subham Intermediate

Joined: 31 Jan 2006 Posts: 255 Topics: 72
|
Posted: Tue May 16, 2006 10:55 pm Post subject: |
|
|
Thanks to Kolusu & Cogito-Ergo-Sum. _________________ Ranga
*****
None of us is as smart as all of us - Ken Blanchard |
|
Back to top |
|
 |
|
|