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

Invalid DEFINED - string overlay, compilation problem


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

New User


Joined: 10 Jun 2006
Posts: 1

PostPosted: Wed Apr 18, 2007 2:00 am
Reply with quote

Hi,

Can anybody help me to solve this IBM1385I E compilation problem?
I have the following declaration:

Code:
DCL  MY_DATA_A   CHAR(50),
        1 MY_DATA DEF MY_DATA_A,
           2 TEXT1      CHAR(5),
           2 TEXT2      CHAR(5),
           2 SEM_A      BIT(1) ALIGNED,
           2 MESS        CHAR(15),
           2 SEM_B      FIXED BIN(15) UNAL,
           2 MESS_X    CHAR(22);

I shouldn't use these ALIGNED and UNAL attributes?
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: Wed Apr 18, 2007 2:17 am
Reply with quote

Hello,

Did you happen to look in your Fine Manual?

One may be found at http://publib.boulder.ibm.com/infocenter/pdthelp/v1r1/index.jsp?topic=/com.ibm.entpli4.doc/ibmc2mst10.htm
Back to top
View user's profile Send private message
delly999

New User


Joined: 12 Jan 2007
Posts: 13
Location: Ontario, Canada

PostPosted: Fri May 11, 2007 12:22 am
Reply with quote

Try declaring the SEM_A as 8 Bits(1 byte) and unalign the structure. If you need to use only the first Bit in SEM_A, please use the SUBSTR function.

DCL MY_DATA_A CHAR(50),
1 MY_DATA DEF MY_DATA_A UNALIGNED,
2 TEXT1 CHAR(5),
2 TEXT2 CHAR(5),
2 SEM_A BIT(8) ,
2 MESS CHAR(15),
2 SEM_B FIXED BIN(15),
2 MESS_X CHAR(22);
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 Replace each space in cobol string wi... COBOL Programming 3
No new posts PARSE Syntax for not fix length word ... JCL & VSAM 7
No new posts Sortjoin and Search for a String and ... DFSORT/ICETOOL 1
No new posts Map Vols and Problem Dataset All Other Mainframe Topics 2
No new posts file manager is doing string conversion IBM Tools 3
Search our Forums:

Back to Top