IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

An invalid separate sign was detected in program


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
dkalyan_c

New User


Joined: 06 Apr 2006
Posts: 17

PostPosted: Tue Jul 03, 2012 12:42 pm
Reply with quote

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
View user's profile Send private message
Nic Clouston

Global Moderator


Joined: 10 May 2007
Posts: 2455
Location: Hampshire, UK

PostPosted: Tue Jul 03, 2012 1:31 pm
Reply with quote

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
View user's profile Send private message
Bill Woodger

Moderator Emeritus


Joined: 09 Mar 2011
Posts: 7309
Location: Inside the Matrix

PostPosted: Tue Jul 03, 2012 1:48 pm
Reply with quote

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
View user's profile Send private message
dkalyan_c

New User


Joined: 06 Apr 2006
Posts: 17

PostPosted: Tue Jul 03, 2012 2:03 pm
Reply with 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
Back to top
View user's profile Send private message
Bill Woodger

Moderator Emeritus


Joined: 09 Mar 2011
Posts: 7309
Location: Inside the Matrix

PostPosted: Tue Jul 03, 2012 2:07 pm
Reply with quote

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
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Tue Jul 03, 2012 4:53 pm
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts Using API Gateway from CICS program CICS 0
No new posts DB2 Event passed to the Application P... DB2 1
No new posts How to pass the PARM value to my targ... COBOL Programming 8
No new posts REXX code to expand copybook in a cob... CLIST & REXX 2
No new posts EZT program to build a flat file with... All Other Mainframe Topics 9
Search our Forums:

Back to Top