Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Avoiding warning messages in spool while writing or reading

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
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    Post subject: Avoiding warning messages in spool while writing or reading
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: 2360
Location: Israel

PostPosted: Fri Mar 16, 2007 12:54 pm    Post subject:
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    Post subject:
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: 1439
Location: Bangalore,India

PostPosted: Fri Mar 16, 2007 2:39 pm    Post subject:
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: Chennai

PostPosted: Fri Mar 16, 2007 4:02 pm    Post subject: Re: Avoiding warning messages in spool while writing or read
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    Post subject:
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: 3158
Location: Tucson AZ

PostPosted: Fri Mar 16, 2007 5:23 pm    Post subject:
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    Post subject:
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: 3158
Location: Tucson AZ

PostPosted: Tue Mar 20, 2007 1:59 pm    Post subject:
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    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 opening a dataset after reading it fr... arunsoods DFSORT/ICETOOL 5 Wed Oct 04, 2017 3:54 pm
This topic is locked: you cannot edit posts or make replies. Rexx to execute spool commands upendrasri CLIST & REXX 5 Wed Oct 04, 2017 6:54 am
This topic is locked: you cannot edit posts or make replies. Rexx to execute spool commands upendrasri CLIST & REXX 47 Fri Sep 29, 2017 1:08 pm
No new posts Spool Extract for Z /os 1.04 version Khadhar Basha CLIST & REXX 3 Thu Sep 28, 2017 3:14 pm
No new posts Unable to copy data from spool in a d... srikant314 JCL & VSAM 8 Fri Jul 28, 2017 9:10 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us