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 Replace values in the input data Vikas Maharnawar DFSORT/ICETOOL 10 Thu May 11, 2017 2:18 pm
No new posts Group Data based on a key Arun Raj DFSORT/ICETOOL 7 Thu Apr 27, 2017 11:29 pm
No new posts unload data from table with lob columns farhad_evan DB2 0 Sat Apr 22, 2017 1:32 pm
No new posts SORT JSON type of data maxsubrat DFSORT/ICETOOL 8 Wed Apr 19, 2017 6:01 pm
No new posts Data replication from multiple Db2 ta... kishpra DB2 9 Mon Mar 27, 2017 9:58 pm


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