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
 
moving numeric display or alphanumeric to packed(comp-3)

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
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    Post subject: moving numeric display or alphanumeric to packed(comp-3)
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: 3158
Location: Tucson AZ

PostPosted: Wed Jul 25, 2007 11:50 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Sort numeric fields with trailing spaces sancraig16 SYNCSORT 7 Tue Apr 03, 2018 1:21 am
No new posts how to display APL characters? Pedro TSO/ISPF 6 Wed Mar 14, 2018 5:07 am
No new posts COMP Variables Mismatch gayu7 COBOL Programming 5 Wed Dec 20, 2017 5:06 pm
No new posts Moving a COMP-3 Variable to a Numeric... ajayachander COBOL Programming 2 Thu Dec 14, 2017 5:46 pm
No new posts Moving a PS file as body of a mail! Vignesh Sid JCL & VSAM 4 Tue Nov 21, 2017 9:23 pm

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