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

How to declare ABC PIC 9(3) in assembler


IBM Mainframe Forums -> PL/I & Assembler
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Pavankumar.m
Warnings : 1

New User


Joined: 28 Nov 2010
Posts: 53
Location: Mumbai

PostPosted: Thu Oct 03, 2013 4:29 pm
Reply with quote

Hi,

How to declare ABC PIC 9(3) in assembler. ?

Thanks in advance,
Pavan Kumar.M
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8570
Location: Dubuque, Iowa, USA

PostPosted: Thu Oct 03, 2013 4:44 pm
Reply with quote

Code:
ABC      DS    CL3
or
ABC      DS    XL3
Either of these is the equivalent. However, note that COBOL does certain conversions that Assembler will not (for example, if X contains 'ABC' and you move it in COBOL to ABC then ABC contains 123 since the sign zones are forced to match the PICTURE; both Assembler variables would contain 'ABC' since zone changes will not be done).
Back to top
View user's profile Send private message
Pavankumar.m
Warnings : 1

New User


Joined: 28 Nov 2010
Posts: 53
Location: Mumbai

PostPosted: Thu Oct 03, 2013 4:47 pm
Reply with quote

Thank you so much Robert icon_smile.gif
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 Assembler test under mask question PL/I & Assembler 5
This topic is locked: you cannot edit posts or make replies. Assembler - Packed Decimals - PACK in... PL/I & Assembler 3
No new posts Calling Assembler from REXX PL/I & Assembler 5
No new posts Learning about Systems Assembler prog... PL/I & Assembler 5
No new posts TSO and the STAX Assembler Macro PL/I & Assembler 43
Search our Forums:

Back to Top