View previous topic :: View next topic
|
Author |
Message |
VivekKhanna
New User
Joined: 09 Feb 2009 Posts: 57 Location: India
|
|
|
|
Hi I am new to PL/1, and facing the following error. Could anyone please explain me, how to deal with this:
IBM1661I S 117.0 Aggregates cannot be assigned to scalars.
Explanation: Only scalars can be assigned to scalars.
Errored line – WS_BYTES_ARRAY(J) = BTS_PASS_BYTES;
Declaration -
1) DCL 1 WS_ARRAY_OF_BYTES,
2 WS_ARRAY_BYTES,
3 WS_BYTES_ARRAY CHAR(8) DIMENSION(8);
2) DCL 1 BTS_PASS_BYTES(8) CHAR(1); |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
reread the manual ( links at top of the page )
... and do not try to assign an aggregate to a scalar |
|
Back to top |
|
|
VivekKhanna
New User
Joined: 09 Feb 2009 Posts: 57 Location: India
|
|
|
|
Hi Enrico,
Sorry didn't get that.. Could you please help me out with that. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
What is not clear?
You cannot assign an aggregate to a scalar. . .
Did you read the manual to learn about aggregates and scalars? If not, do so now.
If there is something in the manual that is not clear, post what you found that is not clear and someone will be able to clarify. |
|
Back to top |
|
|
|