Subject: | |
From: | |
Reply To: | Stigers, Greg ~ AND |
Date: | Thu, 11 Dec 1997 12:01:44 -0500 |
Content-Type: | text/plain |
Parts/Attachments: |
|
|
Yep. Should have used SHOWJOB in this example; that does the trick. Did
I mention that I probably made typos? ;-)
>----------
>From: Bob Mueller[SMTP:[log in to unmask]]
>Sent: Wednesday, December 10, 1997 11:21 AM
>To: Stigers, Greg ~ AND; [log in to unmask]
>Subject: Re: Elements of style
>
>
> Greg,
>
> I like approach "Two" because it seems more direct to the task, BUT...
> I received mixed results when playing around with it. It seems that if
> there is another job running with the same user & account, even though
> the job/session name is different, the SHOWPROC command shows the
> processes and does not provide a CIERROR.
>
> I'm running on a 957 w/ Rls C.50.03.
>
>
> Bob Mueller [log in to unmask]
> M.I.S. Manager Phone: 201-967-3680
> Datascope Corp. - PM Division Fax: 201-265-1867
>
>
>______________________________ Reply Separator
>_________________________________
>Subject: Elements of style
>Author: "Stigers Greg ~ AND" <[log in to unmask]> at INTERNET
>Date: 12/8/97 5:16 PM
>
>
>We want to detect whether or not a job is running, and if it is, run
>another job to gracefully shut down the first job. << Part of original
>message snipped >>
>
>Approach one:
>:JOB JOBSTOP,MANAGER.SYS,PUB.
>...
>:PURGE SJABC
>:SHOWJOB JOB=J0123456,BATCHJOB.ABC > SJABC
>:SETVAR NUMRECS FINFO('SJABC',19)
>:IF NUMRECS = 6 THEN
>: STREAM J6543210.BATCHJOB.ABC
>:ENDIF
>:PURGE SJABC,TEMP
>
>Approach two:
>:JOB JOBSTOP,BATCHJOB.ABC
>...
>:SHOWPROC;JOB=J0123456,!HPUSER.!HPACCOUNT
>:IF CIERROR OK
>: STREAM J6543210.BATCHJOB.ABC
>:ENDIF
>
>
>
>
|
|
|