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
 

 

Length attribute(L') in Assembler

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> PL/I & Assembler
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    Post subject: Length attribute(L') in Assembler
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: 2429
Location: Netherlands, Amstelveen

PostPosted: Tue May 24, 2011 3:27 pm    Post subject:
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    Post subject: Re: Length attribute(L') in Assembler
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: 2502
Location: Atlanta, Georgia, USA

PostPosted: Tue May 24, 2011 3:57 pm    Post subject: Reply to: Length attribute(L') in Assembler
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10232
Location: italy

PostPosted: Tue May 24, 2011 6:50 pm    Post subject: Reply to: Length attribute(L') in Assembler
Reply with quote

nothing that You could not find by Yourself
starting here
http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/Shelves/ASMSH030
proceeding to
http://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    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 Count the length of the record & ... sreekusr DFSORT/ICETOOL 4 Thu Mar 23, 2017 7:52 pm
No new posts Writing on to GSAM variable length rohanthengal JCL & VSAM 6 Fri Mar 03, 2017 7:46 pm
No new posts A not very Christmassy PL/I tale, wit... prino PL/I & Assembler 3 Mon Dec 26, 2016 1:01 am
No new posts SQZ pipe delimited file with 1 column... Rick Silvers DFSORT/ICETOOL 6 Sun Nov 06, 2016 8:11 pm
No new posts Joinkeys operation when key1 and key2... Susanta DFSORT/ICETOOL 5 Wed Nov 02, 2016 5:35 pm


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