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 Passing data from REXX to C programme... chong.zhou CLIST & REXX 1 Wed Jul 26, 2017 9:11 pm
No new posts Passing data from REXX to C programme... chong.zhou All Other Mainframe Topics 0 Wed Jul 26, 2017 4:55 pm
No new posts copying data without knowing location arunsoods DFSORT/ICETOOL 6 Thu Jul 20, 2017 1:03 pm
This topic is locked: you cannot edit posts or make replies. Fetching data from BAI File arunsoods JCL & VSAM 1 Wed Jul 19, 2017 4:28 pm
No new posts Loading data to table gives wrong for... Raghu navaikulam DB2 19 Thu Jul 13, 2017 2:11 pm


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