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
 

 

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 Problem in writing Output file vickey_dw COBOL Programming 5 Mon Nov 14, 2016 11:14 pm
No new posts Reading data from PS file and send it... rajatbagga All Other Mainframe Topics 18 Fri Sep 23, 2016 12:51 pm
No new posts Easytrieve - Report writing - Only 1 ... Abhi Nature CA Products 2 Wed Sep 14, 2016 11:40 am
No new posts Reading selected volumes of a multi-v... RickBig JCL & VSAM 6 Wed Jul 13, 2016 7:26 pm
No new posts Report output in Spool amitc23 JCL & VSAM 4 Tue Apr 26, 2016 4:32 pm


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