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

Usage of '=Y([any labels])' operand


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

New User


Joined: 21 Jul 2007
Posts: 12
Location: Chennai

PostPosted: Thu Jul 26, 2007 5:56 pm
Reply with quote

Hi,

Can any one tell me about the purpose of '=Y([any labels])' operand,

e.g : LA R15,=Y(LT101)

What it does?..........
Back to top
View user's profile Send private message
CICS Guy

Senior Member


Joined: 18 Jul 2007
Posts: 2146
Location: At my coffee table

PostPosted: Thu Jul 26, 2007 6:14 pm
Reply with quote

Address Constants
Generally a two byte address constant.
Back to top
View user's profile Send private message
sjothiprakash

New User


Joined: 21 Jul 2007
Posts: 12
Location: Chennai

PostPosted: Thu Jul 26, 2007 8:35 pm
Reply with quote

Thank U very much.......Guy icon_lol.gif
Back to top
View user's profile Send private message
bengtpelle

New User


Joined: 28 Aug 2006
Posts: 24
Location: St. Petersburg, FL

PostPosted: Sat Aug 04, 2007 11:00 pm
Reply with quote

The Y(x) is not a two byte address constant.

The Y(x) is the same as A(x) except the address is external to current module. It is resolved by the Linkage Editor.
Back to top
View user's profile Send private message
ironmike

New User


Joined: 07 Aug 2005
Posts: 33

PostPosted: Mon Aug 06, 2007 10:58 pm
Reply with quote

Y(label) IS a two-byte address constant, as CICS GUY stated. Y-cons, as they are known, do generate a two-byte address value. The address resolves to an area within the module in which the Y-con is coded. It's wrong to imply that the address is external to the module, since two bytes is not enough to resolve such an address. Y-cons and A-cons are NOT for external references; V-cons are.
Back to top
View user's profile Send private message
bengtpelle

New User


Joined: 28 Aug 2006
Posts: 24
Location: St. Petersburg, FL

PostPosted: Mon Aug 06, 2007 11:36 pm
Reply with quote

Sorry about that.
I agree, I mixed up the Y and the V constant.
I also was thinking of the 2 byte relocatable S constant.
Back to top
View user's profile Send private message
ganasrinivasan

New User


Joined: 06 Nov 2006
Posts: 27
Location: Montreal

PostPosted: Fri Aug 10, 2007 6:40 am
Reply with quote

Hi all,
Since we are discussing about Y cons. i just want to raise a thought.
Can anyone analysed the contents of the v-con address??!!
I think you may to be clear with my question. Let me put like this.

L r4,=v(t0493)

Assume t0493 is the CSECT Name (another program)

Can anyone know, what will be contents of the Register 4.
If the answer is the address of the load module 'to493' (in this case), then try again..Try to read the contents (Keep OPCODE sheet near by)...
If U feel it is not interesting leave it..
Back to top
View user's profile Send private message
manikawnth

New User


Joined: 07 Feb 2007
Posts: 61
Location: Mumbai

PostPosted: Tue Sep 04, 2007 1:55 pm
Reply with quote

Hi srinivas,

I think LA will do the transfer of address contents.
L instr will refer to that address.
If the second operand is an address constant, the register will have the address only (of the csect).

I verified by forcing a s0c1
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 STEM usage in REXX CLIST & REXX 14
No new posts z/OS Modules Usage report using SMF 42 DFSORT/ICETOOL 2
No new posts Concatenate 2 fields (usage national)... COBOL Programming 2
No new posts JCL and TAPE drives: how to maximize ... JCL & VSAM 9
No new posts Usage of BINSEARCH PL/I PL/I & Assembler 1
Search our Forums:

Back to Top