View previous topic :: View next topic
|
Author |
Message |
Kranthi_Merigala
New User
Joined: 22 Mar 2010 Posts: 17 Location: Hartford
|
|
|
|
Hi All,
I have a alphanumeric group field K-MBR-NO
05 K-MBR-NO.
10 K-MBR-NO-9 PIC X(9).
10 K-MBR-SFX PIC X(2).
10 K-MBR-FILLER PIC X(1).
I need to move first nine characters i.e K-MBR-NO-9 to the below field in Eztrieve
05 K-EMP-ID PIC S9(09) USAGE COMP.
Its giving me error message *******B055 INVALID LENGTH, TYPE OR DECIMAL PLACES - K-MBR-NO-9
while trying to move K-MBR-NO-9 to K-EMP-ID
Is there any way that we can move alphanumeric fields to comp fields.
Please help me
Thank you. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Suggest you redefine the x(9) field with a 9(9) field. |
|
Back to top |
|
|
Pravesh
New User
Joined: 30 Jul 2009 Posts: 32 Location: Gurgaon
|
|
|
|
Hi
05 K-EMP-ID PIC S9(09) USAGE COMP.
COMP is not any data format in Easytrieve.
we have B for binary format in easytrieve.
Regards,
Pravesh |
|
Back to top |
|
|
|