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 RMM Cannot move a volume from SHELF l... tspr52 IBM Tools 0 Thu Mar 01, 2018 3:48 pm
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 CONDITIONAL USING COMP-2 WITH PROBLEMS. JOSUEGENTIL COBOL Programming 7 Wed Nov 08, 2017 11:13 pm
No new posts how can i move s9(9) to s9(9) usage comp HARENDRA CHOUDHARY COBOL Programming 3 Mon Nov 06, 2017 12:10 am

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