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

Special Characters in Column 7


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

New User


Joined: 11 Mar 2006
Posts: 13

PostPosted: Thu Aug 03, 2006 8:49 pm
Reply with quote

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 icon_biggrin.gif
Back to top
View user's profile Send private message
DavidatK

Active Member


Joined: 22 Nov 2005
Posts: 700
Location: Troy, Michigan USA

PostPosted: Fri Aug 04, 2006 4:37 am
Reply with quote

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

New User


Joined: 11 Mar 2006
Posts: 13

PostPosted: Sat Aug 05, 2006 8:45 am
Reply with quote

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

New User


Joined: 31 Aug 2005
Posts: 39
Location: St Paul,MN

PostPosted: Fri Aug 25, 2006 5:12 pm
Reply with quote

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
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 Replacing 'YYMMDD' with date, varying... SYNCSORT 3
No new posts Substring number between 2 characters... DFSORT/ICETOOL 2
No new posts How to load to DB2 with column level ... DB2 6
No new posts RC query -Time column CA Products 3
No new posts Reading dataset in Python - New Line ... All Other Mainframe Topics 22
Search our Forums:

Back to Top