Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Function of Data type Y

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> PL/I & Assembler
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    Post subject: Function of Data type Y
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    Post subject:
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: 2502
Location: Atlanta, Georgia, USA

PostPosted: Wed Oct 21, 2009 3:50 pm    Post subject: Reply to: Function of Data type Y
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    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 Data replication from multiple Db2 ta... kishpra DB2 5 Mon Mar 27, 2017 9:58 pm
No new posts Export flat file data into excel sheet murali.andaluri DFSORT/ICETOOL 2 Mon Mar 20, 2017 5:39 pm
No new posts Append data from two files into a sin... Praveen04 DFSORT/ICETOOL 5 Thu Mar 16, 2017 7:29 pm
No new posts SPUFI -- Joining 3 tables – data in... Sysaron DB2 2 Wed Mar 08, 2017 4:18 am
No new posts Overriding PS data in rexx Shaheen Shaik CLIST & REXX 8 Fri Mar 03, 2017 5:08 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us