IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

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: 2501
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: 1306
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

 


Similar Topics
Topic Forum Replies
No new posts Using the Jobname parameter in a Qual... ABENDS & Debugging 1
No new posts ISRSUPC search utility - using high l... TSO/ISPF 2
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
Search our Forums:

Back to Top