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

How to move Alphanumeric to Comp in Eztrieve


IBM Mainframe Forums -> All Other Mainframe Topics
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Kranthi_Merigala

New User


Joined: 22 Mar 2010
Posts: 17
Location: Hartford

PostPosted: Thu May 20, 2010 8:18 am
Reply with quote

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
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Thu May 20, 2010 8:34 am
Reply with quote

Hello,

Suggest you redefine the x(9) field with a 9(9) field.
Back to top
View user's profile Send private message
Pravesh

New User


Joined: 30 Jul 2009
Posts: 32
Location: Gurgaon

PostPosted: Thu May 20, 2010 9:41 am
Reply with quote

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
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 -> All Other Mainframe Topics

 


Similar Topics
Topic Forum Replies
No new posts COBOL - Move S9(11)v9(7) COMP-3 to -(... COBOL Programming 5
No new posts How to move the first field of each r... DFSORT/ICETOOL 5
No new posts Converting ASCII values to COMP-3 (ZD... JCL & VSAM 2
No new posts Interviewers are surprised with my an... Mainframe Interview Questions 6
No new posts How to move DB2 Installation HLQ DB2 4
Search our Forums:

Back to Top