View previous topic :: View next topic
|
Author |
Message |
raviputran
New User
Joined: 05 Jul 2007 Posts: 13 Location: bangalore
|
|
|
|
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 |
|
|
senthilnathanj
New User
Joined: 31 Jul 2007 Posts: 47 Location: chennai
|
|
|
|
Hi ,
First we need to allocate the variable.
Code: |
ALLOCATE STRUCT SET(POINT); |
Code: |
POINT->VAR1 = 'ABC'; |
It will works.Please let me know if i am wrong. |
|
Back to top |
|
|
prino
Senior Member
Joined: 07 Feb 2009 Posts: 1306 Location: Vilnius, Lithuania
|
|
|
|
senthilnathanj wrote: |
Hi ,
First we need to allocate the variable.
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 |
|
|
prino
Senior Member
Joined: 07 Feb 2009 Posts: 1306 Location: Vilnius, Lithuania
|
|
|
|
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 |
|
|
|