HP3000-L Archives

June 2000, Week 1

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
John Backus <[log in to unmask]>
Reply To:
John Backus <[log in to unmask]>
Date:
Tue, 6 Jun 2000 17:48:59 -0400
Content-Type:
text/plain
Parts/Attachments:
text/plain (33 lines)
On 5/22/00, Carl McNamee posted the following:
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:
!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???

*************** We bumped into this same problem today.  Although it has
been a couple of weeks since the original thread, the following solution is
worth sharing.  (Credit to Steve Miller)

!if FINFO("JNBCHECK.JOB.SYS","EXISTS") = True
!  comment ******************************************************
!  comment Workaround to not have MPEX do its de-referencing at the
!  comment moment when the parent job is submitted but rather
!  comment at the time the job is running and ready to stream the
!  comment job JNBCHECK.JOB.SYS.
!  comment ******************************************************
!  comment
!  FILE STRMFILE=JNBCHECK.JOB.SYS
!  RUN STREAMX.PUB.vesoft;PARM=1
!  RESET STRMFILE
!endif

John Backus
Beechglen.com

ATOM RSS1 RSS2