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

Locator qualified reference is unknown


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

New User


Joined: 05 Jul 2007
Posts: 13
Location: bangalore

PostPosted: Wed Jul 28, 2010 12:07 pm
Reply with quote

Hi,


While executing a PLI/IMS program, I am getting IBM1792I S The locator qualified reference VAR1 is unknown for the below statement.

If POINT-> VAR1 = 'ABC'

where

DCL POINT PTR;
DCL P PTR;

DCL 1 STRUCT BASED(P)
2 VAR1 CHAR(2);


But I have declared this as based variable. any idea ??

Gowri Shankar
Back to top
View user's profile Send private message
senthilnathanj

New User


Joined: 31 Jul 2007
Posts: 47
Location: chennai

PostPosted: Tue Aug 03, 2010 1:55 pm
Reply with quote

Hi ,

First we need to allocate the variable.
Code:
ALLOCATE STRUCT

Code:
ALLOCATE STRUCT SET(POINT);

Code:
POINT->VAR1 = 'ABC';


It will works.Please let me know if i am wrong.
Back to top
View user's profile Send private message
prino

Senior Member


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

PostPosted: Tue Aug 03, 2010 2:27 pm
Reply with quote

senthilnathanj wrote:
Hi ,

First we need to allocate the variable.
Code:
ALLOCATE STRUCT

Code:
ALLOCATE STRUCT SET(POINT);

Code:
POINT->VAR1 = 'ABC';


It will works.Please let me know if i am wrong.


You are talking bull, the message is a compile-time message, and furthermore, you are allocating two instances of STRUCT.

Don't answer questions when you do not know what you are talking about, it will only help to confuse the OP.
Back to top
View user's profile Send private message
prino

Senior Member


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

PostPosted: Tue Aug 03, 2010 2:32 pm
Reply with quote

raviputran wrote:
While executing a PLI/IMS program, I am getting IBM1792I S The locator qualified reference VAR1 is unknown for the below statement.

If POINT-> VAR1 = 'ABC'

where

DCL POINT PTR;
DCL P PTR;

DCL 1 STRUCT BASED(P)
2 VAR1 CHAR(2);

But I have declared this as based variable. any idea ??


Use correct terms, message IBM1792I S is a compile-time message and is described in the manuals. It would have been useful if you had shown any other error messages, but in all likelihood there are other error messages related to either STRUCT or VAR1!

FWIW, there is a comma missing after DCL 1 STRUCT BASED(P)...
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 Reference for COND parameter. JCL & VSAM 1
No new posts Reference documentation DFSDDLT0 IMS DB/DC 2
No new posts Trying to reference a javascript glob... CLIST & REXX 7
No new posts DITTO/ESA R3 User's Guide and Referen... IBM Tools 3
No new posts Mainframe datasets without any last r... All Other Mainframe Topics 1
Search our Forums:

Back to Top