Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Problem while working with PL/1

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> PL/I & Assembler
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    Post subject: Problem while working with PL/1
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10327
Location: italy

PostPosted: Wed Jul 08, 2009 12:01 pm    Post subject: Reply to: Problem while working with PL/1
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    Post subject:
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

Site Director


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

PostPosted: Fri Jul 10, 2009 8:20 am    Post subject:
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    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 LMINIT problem - not finding DDNAME Danielle.Filteau CLIST & REXX 7 Tue Sep 19, 2017 9:57 pm
No new posts LIBDEF not working in called proc packerm CLIST & REXX 0 Fri Sep 15, 2017 7:22 pm
No new posts Working with hex values in Filemanage... Emile Straker IBM Tools 0 Tue Sep 12, 2017 1:42 am
No new posts ISREDIT MACRO NOT WORKING! :cry: kirank889 TSO/ISPF 3 Thu Aug 03, 2017 5:46 pm
No new posts Problem commiting to DB2 from IMS MPP Ole Soerensen IMS DB/DC 2 Wed Jul 26, 2017 5:19 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us