IBM Mainframe Forum Index
 
Register
 
IBM Mainframe Forum Index Mainframe: Search Log in to check your private messages Log in
 

locator qualifier(->) use in PL1


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

New User


Joined: 29 Sep 2013
Posts: 1
Location: INDIA

PostPosted: Sun Sep 29, 2013 1:11 am
Reply with quote

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
View user's profile Send private message
Bill O'Boyle

CICS Moderator


Joined: 14 Jan 2008
Posts: 2504
Location: Atlanta, Georgia, USA

PostPosted: Sun Sep 29, 2013 7:05 am
Reply with quote

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
View user's profile Send private message
prino

Senior Member


Joined: 07 Feb 2009
Posts: 1226
Location: Vilnius, Lithuania

PostPosted: Sun Sep 29, 2013 12:46 pm
Reply with quote

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
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

 

Search our Forum:

Similar Topics
Topic Forum Replies
No new posts Using EZACFSM1 prog with instream dat... JCL & VSAM 7
No new posts How DB2 find the qualifier of the tab... DB2 6
No new posts Can we use SYMBOLIC parameter as last... JCL & VSAM 9
No new posts Rename a set of PS using its high qua... TSO/ISPF 6
No new posts Files additonal qualifier CLIST & REXX 2

Back to Top