Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Locator qualified reference is unknown

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> PL/I & Assembler
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    Post subject: Locator qualified reference is unknown
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    Post subject: Reply to: Locator qualified reference is unknown
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: 1028
Location: Oostende, Belgium

PostPosted: Tue Aug 03, 2010 2:27 pm    Post subject: Re: Reply to: Locator qualified reference is unknown
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: 1028
Location: Oostende, Belgium

PostPosted: Tue Aug 03, 2010 2:32 pm    Post subject: Re: Locator qualified reference is unknown
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    IBMMAINFRAMES.com Support Forums -> PL/I & Assembler All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts StreamWeaver language reference chetanambi Compuware & Other Tools 1 Wed Jul 05, 2017 12:50 pm
No new posts How to generate a new unique Input fi... for1ranjith CLIST & REXX 11 Sat Jul 01, 2017 12:09 pm
This topic is locked: you cannot edit posts or make replies. Sort card to replace text using cross... Susanta SYNCSORT 32 Tue Sep 13, 2016 4:17 pm
This topic is locked: you cannot edit posts or make replies. MEMOAPIX - Searching for a Reference ... Steve Coalbran All Other Mainframe Topics 13 Wed Feb 03, 2016 12:01 pm
No new posts Making Reference Phrase field " ... Casper656 TSO/ISPF 11 Thu Feb 05, 2015 7:05 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us