View previous topic :: View next topic
|
Author |
Message |
Parth Sharma
New User
Joined: 29 Sep 2013 Posts: 1 Location: INDIA
|
|
|
|
Hello,
Could you please explain me the usage of Locator Qualifier ("->") in PL1 and How it is getting used with Based variables.
I have used BASED variables and Pointers, so aware of it. However I am not able to understand the same in relation to locator qualifier (->).
Many Thanks in advance !! |
|
Back to top |
|
|
Bill O'Boyle
CICS Moderator
Joined: 14 Jan 2008 Posts: 2501 Location: Atlanta, Georgia, USA
|
|
|
|
In PL/I, this is known as Linked-List processing. You should Google this or consult the appropriate PL/I manual for further explanation and/or example(s).... |
|
Back to top |
|
|
prino
Senior Member
Joined: 07 Feb 2009 Posts: 1306 Location: Vilnius, Lithuania
|
|
|
|
Bill O'Boyle wrote: |
In PL/I, this is known as Linked-List processing. |
It might, but there are many, many more uses for it, like the code below, lifted from a pre-processor procedure, that did what PLIMOVE does nowadays
Code: |
begin;
dcl $ char (32767) based;
dcl # fixed bin (31);
# = min(stg(to), stg(from));
substr(addr(to) -> $, 1, #) = substr(addr(from) -> $, 1, #);
end; |
|
|
Back to top |
|
|
|