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
 
How to move Alphanumeric to Comp in Eztrieve

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics
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    Post subject: How to move Alphanumeric to Comp in Eztrieve
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

Site Director


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

PostPosted: Thu May 20, 2010 8:34 am    Post subject:
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    Post subject: Reply to: How to move Alphanumeric to Comp in Eztrieve
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    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Move from Comp3 variable to Edited Va... sreekusr COBOL Programming 8 Thu Aug 10, 2017 4:20 pm
No new posts DB2 9.1.0 not move values to Host-Var... Miguel Fernandez DB2 8 Wed Jan 25, 2017 8:24 pm
No new posts DB2 9.1.0 not move values to Host-Var... Miguel Fernandez DB2 0 Wed Jan 25, 2017 8:23 pm
No new posts DB2 9.1.0 not move values to Host-Var... Miguel Fernandez DB2 0 Wed Jan 25, 2017 8:21 pm
This topic is locked: you cannot edit posts or make replies. How to move a long alphanumeric data ... lind sh COBOL Programming 8 Mon Dec 05, 2016 7:51 pm

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