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

Length attribute(L') in Assembler


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

New User


Joined: 26 May 2008
Posts: 50
Location: Bangalore

PostPosted: Tue May 24, 2011 3:10 pm
Reply with quote

Hi,

In Assembler we use L' for the length of a field. I have encountered T' and K' in some of the programs. Can anyone explain the meaning of T' and K' in Assembler? Thanks
Back to top
View user's profile Send private message
PeterHolland

Global Moderator


Joined: 27 Oct 2009
Posts: 2481
Location: Netherlands, Amstelveen

PostPosted: Tue May 24, 2011 3:27 pm
Reply with quote

They are mostly used in conditional assembly language.

See : High Level Assembler for z/OS & z/VM & z/VSE Language Reference Release 6 SC26-4940-05

Chapter 9.
Back to top
View user's profile Send private message
nigelosberry

New User


Joined: 06 Jan 2009
Posts: 88
Location: Ggn, IN

PostPosted: Tue May 24, 2011 3:32 pm
Reply with quote

They may be useful if you are writing assembler macros of your own.

T' - type attribute
K' - count attribute


Cheers.
Back to top
View user's profile Send private message
Bill O'Boyle

CICS Moderator


Joined: 14 Jan 2008
Posts: 2501
Location: Atlanta, Georgia, USA

PostPosted: Tue May 24, 2011 3:57 pm
Reply with quote

For example, L' can come in real handy when you need to load the length of a data-area without knowing its actual length beforehand -

Code:

SMALLAREA DS  CL1024
LARGEAREA DS  CL65535

          LH  R1,=Y(L'SMALLAREA)   GENERATES A HWORD-LTORG
          LH  R1,=AL2(L'SMALLAREA) SAME
          L   R1,=A(L'LARGEAREA)   GENERATES A FWORD-LTORG

Introduced with HLASM, HWORD immediate instructions have a maximum of 32767 and don't generate an LTORG entry -
Code:

          LHI R1,L'SMALLAREA       LOADS H'1024' INTO R1

Prior to HLASM, you could use a LA, which has a maximum of 4095.

Bill
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Tue May 24, 2011 6:50 pm
Reply with quote

nothing that You could not find by Yourself
starting here
publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/Shelves/ASMSH030
proceeding to
publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/ASMR1020/CCONTENTS?SHELF=ASMSH030&DN=SC26-4940-05&DT=20080711003624

an searching the index for "T'","L'","K'"

and before complaining read and understand my signature icon_cool.gif
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 Store the data for fixed length COBOL Programming 1
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts PARSE Syntax for not fix length word ... JCL & VSAM 7
No new posts VB to VB copy - Full length reached SYNCSORT 8
No new posts Build dataset list with properties us... PL/I & Assembler 4
Search our Forums:

Back to Top