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

Avoiding warning messages in spool while writing or reading


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

New User


Joined: 29 Jan 2007
Posts: 33
Location: chennai

PostPosted: Fri Mar 16, 2007 12:42 pm
Reply with quote

Is it possible to avoid the warning messages(sometimes appear because of conditions given in cobol program) in spool while writing or reading the record into the file...
please help me out...

Thanks and regards
bala.
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2358
Location: Israel

PostPosted: Fri Mar 16, 2007 12:54 pm
Reply with quote

Are you talking about Compiler Warning messages?

O.
Back to top
View user's profile Send private message
bamohan

New User


Joined: 29 Jan 2007
Posts: 33
Location: chennai

PostPosted: Fri Mar 16, 2007 2:35 pm
Reply with quote

yes ofer...
i m talking on that only..
Back to top
View user's profile Send private message
murmohk1

Senior Member


Joined: 29 Jun 2006
Posts: 1436
Location: Bangalore,India

PostPosted: Fri Mar 16, 2007 2:39 pm
Reply with quote

If you want to suppress spool entirely, replace sysout=* with DUMMY as

//sysout dd dummy
Back to top
View user's profile Send private message
muthuvel

Active User


Joined: 29 Nov 2005
Posts: 217
Location: Canada

PostPosted: Fri Mar 16, 2007 4:02 pm
Reply with quote

Just of curiosity,i wanted to know why you don't want compiler warning message? Because only when you now the mistakes, you can correct them? icon_cool.gif
Back to top
View user's profile Send private message
bamohan

New User


Joined: 29 Jan 2007
Posts: 33
Location: chennai

PostPosted: Fri Mar 16, 2007 4:57 pm
Reply with quote

y u r correct muthu...

but in program i know very clearly that few conditions wont met and few will satisfy, which inturn will display the warning message corrresponding to that. i m interested just to avoid the warning message alone.
Back to top
View user's profile Send private message
William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3156
Location: Tucson AZ

PostPosted: Fri Mar 16, 2007 5:23 pm
Reply with quote

Use the FLAG compiler option to select the level of error to be diagnosed during compilation, FLAG(E) will suppress the I and W level errors.
Back to top
View user's profile Send private message
bamohan

New User


Joined: 29 Jan 2007
Posts: 33
Location: chennai

PostPosted: Tue Mar 20, 2007 10:38 am
Reply with quote

thanks william,,
But i am not familiar with the usage of flage compiler option.. could be please explain how to use that and where to use that.

Thanks and regards
bala
Back to top
View user's profile Send private message
William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3156
Location: Tucson AZ

PostPosted: Tue Mar 20, 2007 1:59 pm
Reply with quote

bamohan wrote:
But i am not familiar with the usage of flage compiler option.. could be please explain how to use that and where to use that.
It would be better if you read about it yourself in the Fine Manual
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 Two input files & writing counter... DFSORT/ICETOOL 12
No new posts Reading dataset in Python - New Line ... All Other Mainframe Topics 22
No new posts Find the size of a PS file before rea... COBOL Programming 13
No new posts Search string in job at regular Spool... CLIST & REXX 0
No new posts AI writing DFSORT, REXX codes.. All Other Mainframe Topics 3
Search our Forums:

Back to Top