Subject: | |
From: | |
Reply To: | |
Date: | Mon, 22 May 2000 12:09:40 -0400 |
Content-Type: | text/plain |
Parts/Attachments: |
|
|
Carl,
STREAMX is looking for MPE's STREAM command, so use a different
command. Create a UDC or command file that executes the STREAM
command with and ANYPARM option for whatever you provide it. As an
example,
print STRM.CMNDFILE.PUB
ANYPARM PARM=' '
COMMENT
COMMENT Command File to stream a job.
COMMENT
IF "!PARM"="' '" THEN
COMMENT No job name specified. No processing.
ELSE
STREAM !PARM
ENDIF
Then use the UDC/command file in your job stream.
!IF FINFO("JNBCHECK.JOB.SYS","EXIST")
! XEQ STRM.CMNDFILE.PUB JNBCHECK.JOB.SYS
!ENDIF
MPEX won't see a "STREAM" command so it won't abort with a
missing file, but your logic of streaming the file IF it exists at execution
time will be maintained.
HTH,
Rs~
Russ Smith, Systems Consultant
Problem Solved, Vacaville, CA
r s m i t h @ c u - h e l p . c o m
h p 3 k - l @ e - 3 0 0 0 . n e t
----- Original Message -----
From: "Carl McNamee" <[log in to unmask]>
To: <[log in to unmask]>
Sent: Monday, May 22, 2000 7:36 AM
Subject: [HP3000-L] Vesoft and streaming a job within a job?
> I am trying to figure out how to do error checking within a job stream to
> see if a file exists before I attempt to stream it. I have the following
in
> a job stream:
>
> !COMMENT Stream jobs that should run every two hours.
> !
> !STREAM JILOGCHK.JOB.SYS
> !IF FINFO('JNBCHECK.JOB.SYS',0)
> ! STREAM JNBCHECK.JOB.SYS
> !ENDIF
> !
>
> What is happening to me is that Vesoft/Streamx is checking all the stream
> statements in my jobstream and when it sees that JNBCHECK does not exist
it
> give an error that the file does not exist and never streams my job. If I
> bypass the Streamx udc's the job stream works fine.
>
> What can I do to make this work???
>
> Carl McNamee
> Systems Administrator
> Billing Concepts
>
|
|
|