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
 

 

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: 2502
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: 2502
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 Data replication from multiple Db2 ta... kishpra DB2 5 Mon Mar 27, 2017 9:58 pm
No new posts Export flat file data into excel sheet murali.andaluri DFSORT/ICETOOL 2 Mon Mar 20, 2017 5:39 pm
No new posts Append data from two files into a sin... Praveen04 DFSORT/ICETOOL 5 Thu Mar 16, 2017 7:29 pm
No new posts Problem reading GTF trace output danik56 ABENDS & Debugging 7 Thu Mar 16, 2017 1:02 pm
No new posts SPUFI -- Joining 3 tables – data in... Sysaron DB2 2 Wed Mar 08, 2017 4:18 am


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