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

Problem in data definition in assembler


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

New User


Joined: 22 Nov 2007
Posts: 77
Location: noida

PostPosted: Tue Aug 24, 2010 1:30 am
Reply with quote

Hi All,

I got one statement in my assembler program as

XYZ DS FD

Can anyone tell me what is meaning of FD and how many bytes this will take for storage.
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 Aug 24, 2010 1:53 am
Reply with quote

You can generate the length by specifying -

Code:

                 L     R15,=A(L'XYZ)

=A(L'XYZ) can then be found in the LTORG as a fullword.

I've never used an FD directive, so I'm unsure of its length.

Bill
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 Aug 24, 2010 2:35 am
Reply with quote

It seems to be an aligned-doubleword, but you can give it a constant in decimal-format, like a fullword. EG:

Code:

Y2KSECS  DC     FD'3155673600'     2000/01/01 IN SECONDS
QUADWRD  DS     L                  ALIGNED-QUADWORD

You can then use this in 64-Bit instructionS (EG: Load Grande and Convert to Decimal Grande) -

Code:

         LG     R15,Y2KSECS        LOAD 64-BIT REGISTER
         CVDG   R15,QUADWRD        MAKE IT 16-BYTES DECIMAL

Bill
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 Data set Rec-Cnt and Byte-Cnt Testing & Performance 2
No new posts Map Vols and Problem Dataset All Other Mainframe Topics 2
No new posts SCOPE PENDING option -check data DB2 2
No new posts Check data with Exception Table DB2 0
Search our Forums:

Back to Top