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
 

 

An invalid separate sign was detected in program

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
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    Post subject: An invalid separate sign was detected in program
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: 1788
Location: UK

PostPosted: Tue Jul 03, 2012 1:31 pm    Post subject:
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

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7315

PostPosted: Tue Jul 03, 2012 1:48 pm    Post subject: Reply to: An invalid separate sign was detected in program
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    Post subject:
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

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7315

PostPosted: Tue Jul 03, 2012 2:07 pm    Post subject: Reply to: An invalid separate sign was detected in program
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: 8057
Location: East Dubuque, Illinois, USA

PostPosted: Tue Jul 03, 2012 4:53 pm    Post subject:
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    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 IMS T-Pipe queue counts in a COBOL Pr... Siva NKK Kothamasu IMS DB/DC 0 Tue May 09, 2017 6:31 pm
No new posts Need help in REXX CALL program Raje1002 CLIST & REXX 5 Wed Apr 19, 2017 11:18 pm
No new posts SQL query not working in Cobol program. CuriousMainframer COBOL Programming 14 Wed Feb 22, 2017 5:56 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 Executing OO COBOL program invoking J... Virendra Shambharkar COBOL Programming 2 Tue Jan 10, 2017 6:37 pm


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