Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Problem in data definition in assembler

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> PL/I & Assembler
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    Post subject: Problem in data definition in assembler
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: 2504
Location: Atlanta, Georgia, USA

PostPosted: Tue Aug 24, 2010 1:53 am    Post subject: Reply to: Problem in data definition in assembler
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: 2504
Location: Atlanta, Georgia, USA

PostPosted: Tue Aug 24, 2010 2:35 am    Post subject: Reply to: Problem in data definition in assembler
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    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 Copy 4 byte of data from the last rec... arunsoods DFSORT/ICETOOL 9 Fri Oct 06, 2017 12:15 pm
No new posts opening a dataset after reading it fr... arunsoods DFSORT/ICETOOL 5 Wed Oct 04, 2017 3:54 pm
This topic is locked: you cannot edit posts or make replies. PS file data should be passed as symb... d_sarlie JCL & VSAM 15 Tue Oct 03, 2017 5:18 am
No new posts File Aid tool to compare numeric data balaji81_k Compuware & Other Tools 2 Tue Sep 26, 2017 3:35 am
No new posts Assembler Macro Copybook converted to... Ziquilix PL/I & Assembler 4 Tue Sep 26, 2017 3:07 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us