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 Storing huge volume of data, compare ... Pradeep K M All Other Mainframe Topics 3 Mon Jan 16, 2017 5:08 pm
No new posts how to recover an uncataloged VSAM da... archanamuthukrishnan All Other Mainframe Topics 3 Wed Jan 11, 2017 6:18 pm
No new posts HALDB data refresh/copy from producti... vineetanand2007 IMS DB/DC 0 Mon Jan 02, 2017 11:16 am
No new posts JES2 JEC: Use UNIX Pipes to Pass Data... Virendra Shambharkar JCL & VSAM 21 Tue Dec 20, 2016 6:55 pm
No new posts Is the 'prompt' data for the DSLIST p... Willy Jensen TSO/ISPF 2 Tue Dec 06, 2016 4:38 am


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