View previous topic :: View next topic
|
Author |
Message |
isys2006
New User
Joined: 11 Mar 2006 Posts: 13
|
|
|
|
Hi
one of my friends coded a very simple cobol program to display a message. But he received an error which said that
"There were non-cobol characters (apart from * - /) in column 7."
Max CC = 12.
We couldnt find any such character in column 7 in the program.
Has anyone come across this message before?
Any help would be appreciated.
Thanks in advance |
|
Back to top |
|
|
DavidatK
Active Member
Joined: 22 Nov 2005 Posts: 700 Location: Troy, Michigan USA
|
|
|
|
Well,
What compiler are you using?
I find that the compiler is usually right in its diagnostics. Doesn?t the compiled listing indicate the line in question?
It?s kind of hard to help without seeing the code and compiled listing. I have had instances where I thought my TSO edit session was ?NUM COB? but really ?NUM STANDARD?. I cut and paste code into it and come up with this kind of error. However, it?s not hard to see what the problem is.
Maybe you can post the code and errors.
If this has been resolved, come back and let us know what happened.
Dave |
|
Back to top |
|
|
isys2006
New User
Joined: 11 Mar 2006 Posts: 13
|
|
|
|
Thanks david for the help.
The problem was this person cut & pasted the code from another member.
If you write the program afresh, there was no problem.
Its fixed now.
Thanks once again.
warm regards
ram |
|
Back to top |
|
|
annujp
New User
Joined: 31 Aug 2005 Posts: 39 Location: St Paul,MN
|
|
|
|
At times like this, just give the command F all " " in the command line. The spaces will be highlighted and any junk characters will show up as a dark space.U can either space out this position or delete that line if blank.
I have faced this issue when i try to upload a Pgm or JCL from PC to Host. |
|
Back to top |
|
|
|