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

Function of Data type Y


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

New User


Joined: 17 Aug 2007
Posts: 6
Location: Chennai

PostPosted: Wed Oct 21, 2009 12:26 pm
Reply with quote

Hi,

Could anyone suggest what is the use of the data type Y in Assembler languge?

I found the follwong code inside an Assembler Macro:-

Example

.C1100 ANOP ,
&LABEL BALR 10,10
DC Y(&REQCODE)
MEXIT ,

Where &REQCODE is one of the parameters passed while calling the MACRO

MACRO ,
&LABEL <Macroname> &REQCODE,
&ACTION=REQUEST
Back to top
View user's profile Send private message
nivastech

New User


Joined: 17 Aug 2007
Posts: 6
Location: Chennai

PostPosted: Wed Oct 21, 2009 12:46 pm
Reply with quote

Hi All,

I searched the manual..should have done it before... icon_razz.gif

Y -Address Value of address; normally a halfword

Thanks
Back to top
View user's profile Send private message
Bill O'Boyle

CICS Moderator


Joined: 14 Jan 2008
Posts: 2501
Location: Atlanta, Georgia, USA

PostPosted: Wed Oct 21, 2009 3:50 pm
Reply with quote

A counterpart to a Y is an AL2. The difference being a Y is halfword aligned whereas, an AL2 is not.

If you're tight for space, the AL2 can save you addressability.

EG:

Code:

BIGAREA  DS   CL4096
BIGAREAL DC   Y(L'BIGAREA)      GENERATES X'1000'
BIGAREAL DC   AL2(L'BIGAREA)    SAME AS ABOVE

Bill
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 Data set Rec-Cnt and Byte-Cnt Testing & Performance 2
No new posts SCOPE PENDING option -check data DB2 2
No new posts Check data with Exception Table DB2 0
No new posts Calling an Open C library function in... CICS 1
No new posts JCL EXEC PARM data in C Java & MQSeries 2
Search our Forums:

Back to Top