Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

halt a COBOL program while executing
Hi there,

I want to halt my program while it is executing for just a minute or
two.

Is there any way I can make it happen in the COBOL code?

Please let me know if there is a way.

Is WAIT reserved word any good?



--
posted via MFF :  http://www.MainFrameForum.com - USENET Gateway

Report this thread to moderator Post Follow-up to this message
Old Post
neerajpeddu
09-15-04 01:55 AM


Re: halt a COBOL program while executing
See recent thread on "sleep".

The bottom-line is that

Yes, there are ways to do this

BUT

we need to know which compiler (vendor and release) and what operating syste
m
you are running on to answer the question of HOW to do it.

--
Bill Klein
wmklein <at> ix.netcom.com
"neerajpeddu" <member@mainframeforum.com> wrote in message
news:1095192995.VTQVOLrNg25JumpqrRu95g@onlynews...
> Hi there,
>
> I want to halt my program while it is executing for just a minute or
> two.
>
> Is there any way I can make it happen in the COBOL code?
>
> Please let me know if there is a way.
>
> Is WAIT reserved word any good?
>
>
>
> --
> posted via MFF :  http://www.MainFrameForum.com - USENET Gateway



Report this thread to moderator Post Follow-up to this message
Old Post
William M. Klein
09-15-04 01:55 AM


Re: halt a COBOL program while executing
> I want to halt my program while it is executing for just a minute or two
> Is there any way I can make it happen in the COBOL code
> Please let me know if there is a way
> Is WAIT reserved word any good
> posted via MFF :  http://www.MainFrameForum.com - USENET Gateway

Can we assume that since you posted via MainFrameForum that you are on an IB
M mainframe?
Since halting a batch program is usually illogical, can we assume you want t
o do this online in CICS?
Then:

EXEC CICS DELAY
FOR MINUTES (2)
END-EXEC.

works pretty well to halt a program for just minute or two.












Report this thread to moderator Post Follow-up to this message
Old Post
Mike
09-15-04 08:55 AM


Re: halt a COBOL program while executing
If on an IBM mainframe, *and* running in batch, then use a call to ILBOWAT0

--
Bill Klein
wmklein <at> ix.netcom.com
"Mike" <NoSpam@SpamStopper.org> wrote in message
news:zumdneuEk9b_8drcRVn_vA@giganews.com... 
>
> Can we assume that since you posted via MainFrameForum that you are on an 
IBM
> mainframe?
> Since halting a batch program is usually illogical, can we assume you want
 to
> do this online in CICS?
> Then:
>
> EXEC CICS DELAY
>            FOR MINUTES (2)
> END-EXEC.
>
> works pretty well to halt a program for just minute or two.
>
>
>
>
>
>
>
>
>
>
>



Report this thread to moderator Post Follow-up to this message
Old Post
William M. Klein
09-15-04 08:55 AM


Re: halt a COBOL program while executing
In article <h5K1d.1368934$6p.235300@news.easynews.com>,
William M. Klein <wmklein@nospam.netcom.com> wrote:
>If on an IBM mainframe, *and* running in batch, then use a call to ILBOWAT0

Well, I wasn't going to say anything about it... but I tried that today,
using both the example posted here (and a parm of S9(8)) and some old code
I'd gotten from... somewhere that used to work... on some version of the
MVS architecture (parm = S9(9) COMP)...

... and I compiled with IGYCRCTL (DATA(24)) and OldBol (IKFCBL00... it's
out there, you just gotta know where to look)... and I couldn't get the
thing to work at all, it either executed without a wait and gave a
completion code of 8 or it hung *so* long that I started to get scared
about hogging an initiator and I can'd the fool thing.  Maybe tomorrow
I'll post some specifics.

DD

Report this thread to moderator Post Follow-up to this message
Old Post
docdwarf@panix.com
09-15-04 08:55 AM


Re: halt a COBOL program while executing
On Tue, 14 Sep 2004 20:16:35 GMT, neerajpeddu
<member@mainframeforum.com> wrote:

>Hi there,
>
>I want to halt my program while it is executing for just a minute or
>two.
>
>Is there any way I can make it happen in the COBOL code?
>
>Please let me know if there is a way.
>
>Is WAIT reserved word any good?

Check with  "William Cai" <wenliang_cai@yahoo.com.cn>



Report this thread to moderator Post Follow-up to this message
Old Post
Robert Wagner
09-15-04 08:55 AM


Re: halt a COBOL program while executing
Doc,
One thing that *might* help is to use a DYNAMIC call, i.e.
Call identifier-with-ILBOWAT0-Value

If that doesn't work, I really would like to know the details - as this
certainly has worked in the past - and should with the OS/VS COBOL library, 
VS
COBOL II library or the LE run-time library.

--
Bill Klein
wmklein <at> ix.netcom.com
<docdwarf@panix.com> wrote in message news:ci7sb8$1k0$1@panix5.panix.com...
> In article <h5K1d.1368934$6p.235300@news.easynews.com>,
> William M. Klein <wmklein@nospam.netcom.com> wrote: 
>
> Well, I wasn't going to say anything about it... but I tried that today,
> using both the example posted here (and a parm of S9(8)) and some old code
> I'd gotten from... somewhere that used to work... on some version of the
> MVS architecture (parm = S9(9) COMP)...
>
> ... and I compiled with IGYCRCTL (DATA(24)) and OldBol (IKFCBL00... it's
> out there, you just gotta know where to look)... and I couldn't get the
> thing to work at all, it either executed without a wait and gave a
> completion code of 8 or it hung *so* long that I started to get scared
> about hogging an initiator and I can'd the fool thing.  Maybe tomorrow
> I'll post some specifics.
>
> DD



Report this thread to moderator Post Follow-up to this message
Old Post
William M. Klein
09-15-04 08:55 AM


Re: halt a COBOL program while executing
In article <DTK1d.1370656$6p.235711@news.easynews.com>,
William M. Klein <wmklein@nospam.netcom.com> wrote:
>Doc,
>  One thing that *might* help is to use a DYNAMIC call, i.e.
>   Call identifier-with-ILBOWAT0-Value

Doing that already, thanks.

>
>If that doesn't work, I really would like to know the details - as this
>certainly has worked in the past - and should with the OS/VS COBOL library,
 VS
>COBOL II library or the LE run-time library.

As I said, on the morrow... good to see an interest piqued!

DD


Report this thread to moderator Post Follow-up to this message
Old Post
docdwarf@panix.com
09-15-04 08:55 AM


Re: halt a COBOL program while executing
See recent thread on "sleep".

The bottom-line is that

Yes, there are ways to do this

BUT

we need to know which compiler (vendor and release) and what operating syste
m
you are running on to answer the question of HOW to do it.

--
Bill Klein
wmklein <at> ix.netcom.com
"neerajpeddu" <member@mainframeforum.com> wrote in message
news:1095192995.VTQVOLrNg25JumpqrRu95g@onlynews...
> Hi there,
>
> I want to halt my program while it is executing for just a minute or
> two.
>
> Is there any way I can make it happen in the COBOL code?
>
> Please let me know if there is a way.
>
> Is WAIT reserved word any good?
>
>
>
> --
> posted via MFF :  http://www.MainFrameForum.com - USENET Gateway



Report this thread to moderator Post Follow-up to this message
Old Post
William M. Klein
09-18-04 08:55 AM


Re: halt a COBOL program while executing
If on an IBM mainframe, *and* running in batch, then use a call to ILBOWAT0

--
Bill Klein
wmklein <at> ix.netcom.com
"Mike" <NoSpam@SpamStopper.org> wrote in message
news:zumdneuEk9b_8drcRVn_vA@giganews.com... 
>
> Can we assume that since you posted via MainFrameForum that you are on an 
IBM
> mainframe?
> Since halting a batch program is usually illogical, can we assume you want
 to
> do this online in CICS?
> Then:
>
> EXEC CICS DELAY
>            FOR MINUTES (2)
> END-EXEC.
>
> works pretty well to halt a program for just minute or two.
>
>
>
>
>
>
>
>
>
>
>



Report this thread to moderator Post Follow-up to this message
Old Post
William M. Klein
09-18-04 01:55 PM


Sponsored Links




Last Thread Next Thread Next
Pages (2): [1] 2 »
Search this forum -> 
Post New Thread

Cobol archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 04:30 AM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.