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 Advanced Assembler Language and MVS I... Paul Voyner All Other Mainframe Topics 0 Wed Apr 18, 2018 3:49 pm
No new posts 3270 Data stream error Benchwarmer CICS 4 Tue Apr 17, 2018 12:06 am
No new posts How to list data set names with diffe... murali.andaluri CLIST & REXX 8 Thu Apr 12, 2018 11:33 pm
No new posts Invalid XML character while producing... nikhil.bhole IBM Tools 4 Tue Mar 20, 2018 1:24 am
No new posts Get the list of data sets on DASD and... rakaitn JCL & VSAM 3 Thu Mar 08, 2018 12:38 pm

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