MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Data Movement

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming
View previous topic :: View next topic  
Author Message
nadh
Intermediate


Joined: 08 Oct 2004
Posts: 192
Topics: 89

PostPosted: Wed Feb 29, 2012 12:27 pm    Post subject: Data Movement Reply with quote

Hi,
I've been not coding since one year. I've this problem below. I doubt something going wrong in the below code.

I've declarations as below
Code:

05  ALL-NINES           PIC 9(05)             COMP-3
                                    VALUE 99999.   
05  TYPE-OF-MAINTENANCE-SEQUENCE                   
                        PIC 9(04)             COMP 
                                    VALUE ZERO.
05  SEQUENCE-NUMBER     PIC 9(03)             COMP-3       
                                    VALUE ZERO.           

Can we write like below..is it ok
Code:

MOVE ALL-NINES TO                       
  TYPE-OF-MAINTENANCE-SEQUENCE
  SEQUENCE-NUMBER

Also I've below declaration
Code:

AA-NUMBER-BREAKDOWN OF WORK-AREAS
05  AA-NUMBER-BREAKDOWN.                           
    07  ATA-CODE        PIC 9(04)   VALUE ZERO.   
    07  DASH-FILLER     PIC X(01)   VALUE SPACE.   
    07  ENGINEERING-ID-SEQUENCE                   
                        PIC 9(05)   VALUE ZERO.   
03  LC-KEY.                                             
     05  ENGINEERING-DOCUMENT-ID.                         
         07  ATA-CODE        PIC 9(05)             COMP-3 
                                         VALUE ZERO.       
         07  ENGINEERING-ID-SEQUENCE                       
                             PIC S9(05)            COMP-3 
                                         VALUE ZERO.         

Can we move data from AA-NUMBER-BREAKDOWN TO LC-KEY...i.e.,
CORRESPONDING ATA-CODE AND ENGINEERING-ID-SEQUENCE data in both ways?

Thanks
Nadh
Back to top
View user's profile Send private message Send e-mail
nadh
Intermediate


Joined: 08 Oct 2004
Posts: 192
Topics: 89

PostPosted: Wed Feb 29, 2012 12:39 pm    Post subject: Reply with quote

Hi,

Sorry I forgot to tell that this code is used in IMS. Program is working correctly. The problem is occuring when data exceeds 9999 value.But they all look to be duplicates, the only value that changes is the sequence number.when there is more than 9999 records does the data overlay onto the next field or exactly what?

Please clarigy.

Thanks
nadh
Back to top
View user's profile Send private message Send e-mail
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12378
Topics: 75
Location: San Jose

PostPosted: Wed Feb 29, 2012 12:55 pm    Post subject: Reply with quote

nadh,

You need to understand the basics of how much a 2 byte comp field can hold.

Check this link

http://www.mvsforums.com/helpboards/viewtopic.php?t=9866&highlight=comp

http://www.mvsforums.com/helpboards/viewtopic.php?t=11446&highlight=comp
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group