Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

IGZ0063S An invalid sign was detected in a numeric edited

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
View previous topic :: :: View next topic  
Author Message
shoaib

New User


Joined: 20 Dec 2006
Posts: 5
Location: mumbai

PostPosted: Sat Jun 13, 2009 2:43 am    Post subject: IGZ0063S An invalid sign was detected in a numeric edited
Reply with quote

Hi,
I have run down in a problem with the Edited Field being moved to a numeric value.

01 INPUT-REC.
05 P-AMOUNT PIC -9999.99 VALUE IS ZEROES.
05 R-RATE PIC ZZ.99 VALUE IS ZEROES.
05 N-YEAR PIC ZZ VALUE IS ZEROES.

01 INPUT-DEC.
05 P-AMOUNT2 PIC S9999V99 VALUE IS ZEROES.
05 R-RATE2 PIC 99V99 VALUE IS ZEROES.
05 N-YEAR2 PIC 99 VALUE IS ZEROES.

Procedure division.
...
2000-GET-INPUTS.
ACCEPT P-AMOUNT
ACCEPT R-RATE
ACCEPT N-YEAR.
MOVE P-AMOUNT TO P-AMOUNT2. ** This statement gives the error**
MOVE R-RATE TO R-RATE2.
MOVE N-YEAR TO N-YEAR2.
2000-ENDS.
EXIT.

When I run the code I get the run time error of IGZ0063S ...
I tried with the following things :
1. 05 P-AMOUNT PIC -ZZZZ.99 VALUE IS ZEROES.
2. 05 P-AMOUNT PIC -ZZZ9.99 VALUE IS ZEROES.
I tried all the following inputs :
1. //SYSIN DD *
+1000.00
10
4
/*
2. //SYSIN DD *
1000
10
4
/*

In Xpeditor , I checked and it shows: (for option 1 of SYSIN DD)
P-AMOUNT +1000.00
P-AMOUNT2 +0000.00
Just before the execution of this step .... but fails with the error IGZ0063S on the above indicated step.
Nothing seems to be working and I'm running into the same error again and again .... I appreciate you suggestions ?
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: Sat Jun 13, 2009 6:14 am    Post subject:
Reply with quote

Hello,

At the top of the page is a link to "IBM Manuals".

In the COBOL Language Reference for your release of COBOL, look up NUMVAL and NUMVAL-C.
Back to top
View user's profile Send private message
mmwife

Super Moderator


Joined: 30 May 2003
Posts: 1592

PostPosted: Sat Jun 13, 2009 7:04 pm    Post subject:
Reply with quote

If you DO have a "+" sign as the 1st char in your sending fld, that is the "invalid" char causing your problem.

Youu can correct it using Dick's suggestion or you can use this:
Code:
IF P-AMOUNT(1:1) NOT = '-'
   MOVE ' ' TO P-AMOUNT(1:1)
END-IF


Either will work, but this is probably more efficient.
Back to top
View user's profile Send private message
shoaib

New User


Joined: 20 Dec 2006
Posts: 5
Location: mumbai

PostPosted: Mon Jun 15, 2009 9:38 pm    Post subject:
Reply with quote

Thanks for the help
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 -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Converting decimal to numeric using I... Balaryan DFSORT/ICETOOL 4 Thu Feb 02, 2017 11:27 pm
No new posts INVALID FIELD OR CONSTANT IN SORTOF ?? Ron Klop DFSORT/ICETOOL 8 Wed Jan 11, 2017 3:44 pm
No new posts Sort records based on numeric field. Alks SYNCSORT 2 Wed Oct 19, 2016 10:14 pm
No new posts IEF645I INVALID REFERBACK IN THE RC ... abdulrafi JCL & VSAM 2 Mon Aug 29, 2016 10:57 am
No new posts Casting a Binary Number to Numeric in... Bob Steinkraus Java & MQSeries 6 Tue Aug 09, 2016 5:58 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us