View previous topic :: View next topic
|
Author |
Message |
dkalyan_c
New User
Joined: 06 Apr 2006 Posts: 17
|
|
|
|
I am doing the below MOVE operation in my Cobol pgm and when i run the job, i am getting error as
"An invalid separate sign was detected in program XXX on line 1234" .
a-amt PIC S9(07)V99 SIGN IS LEADING SEPARATE CHARACTER.
b-amt PIC S9(7)V99 SIGN IS LEADING SEPARATE.
MOVE a-amt TO b-amt.
Can omeone help me if the Variable declration is correct. |
|
Back to top |
|
|
Nic Clouston
Global Moderator
Joined: 10 May 2007 Posts: 2455 Location: Hampshire, UK
|
|
|
|
Have you checked the manual? If the compiler passed it, as you suggest (because you say you are running the program so presumably you have compiled and linked it) then why are you doubting the syntax? And which is line 1234? |
|
Back to top |
|
|
Bill Woodger
Moderator Emeritus
Joined: 09 Mar 2011 Posts: 7309 Location: Inside the Matrix
|
|
|
|
Presumably the message reference that you felt would not be of use to us was IGZ0040S?
If you look the message up, you'll see why it was generated.
From what you've shown so far, that's about all we can say. |
|
Back to top |
|
|
dkalyan_c
New User
Joined: 06 Apr 2006 Posts: 17
|
|
|
|
If the MOVE statement is fine, then why i am getting the below error message when i run the job .
"An invalid separate sign was detected in program XXX on line 1234" .
Any suggestion pls |
|
Back to top |
|
|
Bill Woodger
Moderator Emeritus
Joined: 09 Mar 2011 Posts: 7309 Location: Inside the Matrix
|
|
|
|
It has been suggested to you twice to look at the meaning of the message (look it up an the relevant manual). This is easy. Copy/paste the first part of the message into a search box and click/press carriage-return.
Exactly why you get that failure, we can't tell from what you have shown. So, look at the message. If still stuck, you'll have to post the relevant information from the declarations and explain what the source of the fields is. |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
Quote: |
If the MOVE statement is fine, then why i am getting the below error message when i run the job .
"An invalid separate sign was detected in program XXX on line 1234" .
Any suggestion pls |
The MOVE statement is completely correct. The error you are getting indicates that the data in your variables does not match the provided PICTURE clause -- which is an execution error and hence has ABSOLUTELY NOTHING to do with whether or not the MOVE statement is fine.
And as long as you keep harping about, and focusing on, the MOVE statement instead of the data being moved -- your problem cannot be resolved since it is NOT the MOVE statement that has the problem, but the data that does not match the PICTURE clause. |
|
Back to top |
|
|
|