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
 
Moving comp value to Numeric value

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CA Products
View previous topic :: :: View next topic  
Author Message
Selvamani

New User


Joined: 19 Dec 2006
Posts: 21
Location: California

PostPosted: Fri Aug 17, 2007 6:33 am    Post subject: Moving comp value to Numeric value
Reply with quote

Hi,

I need to move a comp value to a numeric field.
I have defined like this

M-AIF-SSN-TAXID 73 5 P

O-AIF-SSN-TAXID 27 35 N

I am getting error
17 O-AIF-SSN-TAXID 27 36 N
17 *******B097 LENGTH INVALID FOR TYPE - N

Can someone help me?
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: Fri Aug 17, 2007 7:36 am    Post subject:
Reply with quote

Hello,

The length you've specified is far too long.
Back to top
View user's profile Send private message
bijumon

New User


Joined: 14 Aug 2006
Posts: 20
Location: Pune,India

PostPosted: Fri Aug 17, 2007 9:40 am    Post subject: Reply to: Moving comp value to Numeric value
Reply with quote

Hi,

I am just adding to what dick has specified above, the maximum

length supported for a numeric field is 18 bytes.


Thanks & Regards,
----------------------
Biju
Back to top
View user's profile Send private message
Selvamani

New User


Joined: 19 Dec 2006
Posts: 21
Location: California

PostPosted: Fri Aug 17, 2007 10:57 am    Post subject:
Reply with quote

Thanks both. It works now.
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 -> CA Products All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
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 Moving a PS file as body of a mail! Vignesh Sid JCL & VSAM 4 Tue Nov 21, 2017 9:23 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