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

moving numeric display or alphanumeric to packed(comp-3)


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
niks_jude
Warnings : 1

Active User


Joined: 01 Dec 2006
Posts: 144
Location: Mumbai

PostPosted: Wed Jul 25, 2007 10:55 pm
Reply with quote

Hi,

We are facing a problem. We are moving some numeric display to comp-3 fields and not able to understand the conversion process. Simililarly while moving alphanumeric to comp-3 field the conversion rule is not clear. What are the rules involved?

I have tried moving comp-3 to numeric display fields and the conversion rule was straightforward.
Back to top
View user's profile Send private message
William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3156
Location: Tucson AZ

PostPosted: Wed Jul 25, 2007 11:50 pm
Reply with quote

Moving pure numeric display - S9(n)V99? Or edited numeric display? - Z(n-1).99?
If the first, it is a simple pack operation where the front half of each byte gets dropped and the rear half gets moved - except for the last byte in which the front half and rear half just swap places.
F1F2F0F8F4F8 >> 0120848F
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 -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts PD not working for unsigned packed JO... DFSORT/ICETOOL 5
No new posts Def PD not working for unsigned packe... JCL & VSAM 3
No new posts COBOL - Move S9(11)v9(7) COMP-3 to -(... COBOL Programming 5
No new posts Need Help with Packed Decimal Signs DFSORT/ICETOOL 4
No new posts Moving Or setting POINTER to another ... COBOL Programming 2
Search our Forums:

Back to Top