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

Problem while working with PL/1


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

New User


Joined: 09 Feb 2009
Posts: 57
Location: India

PostPosted: Wed Jul 08, 2009 11:12 am
Reply with quote

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
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Wed Jul 08, 2009 12:01 pm
Reply with quote

reread the manual ( links at top of the page )
... and do not try to assign an aggregate to a scalar icon_biggrin.gif
Back to top
View user's profile Send private message
VivekKhanna

New User


Joined: 09 Feb 2009
Posts: 57
Location: India

PostPosted: Fri Jul 10, 2009 8:08 am
Reply with quote

Hi Enrico,

Sorry didn't get that.. Could you please help me out with that.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Fri Jul 10, 2009 8:20 am
Reply with quote

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
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 Map Vols and Problem Dataset All Other Mainframe Topics 2
No new posts PD not working for unsigned packed JO... DFSORT/ICETOOL 5
No new posts Def PD not working for unsigned packe... JCL & VSAM 3
No new posts z/vm installation problem All Other Mainframe Topics 0
No new posts Job scheduling problem. JCL & VSAM 9
Search our Forums:

Back to Top