Subject: | |
From: | |
Reply To: | |
Date: | Fri, 20 Nov 1998 09:15:54 -0800 |
Content-Type: | text/plain |
Parts/Attachments: |
|
|
One of the slickest ways to do this is if you use STREAMX with VESOFT. You can
include code in your job that allows you to tailor a jobstream at the time of
submission. For instance
!JOB MYJOB,DBA.ACCOUNT....
::IF <condition>
!FILE A=FILEA.GROUP
!RUN PROGA.OBJECT
::ELSE
!FILE B=FILEB.GROUP
!RUN PROGB.OBJECT
::ENDIF
!EOJ
See the manual for all of the :: commands, there are lots of examples.
No VESOFT? You might try something like
!IF FINFO("myfile.group",19) > 0
! FILE A=myfile.group
! RUN PROGA.OBJECT
!ENDIF
Jon Temple wrote:
> I have a job stream which I want to close or abort "naturally" if a file is
> no found. I know if I do a listf on the file in the job, it will abort
> before processing, but our operations people see that and call someone in
> the middle of the night.
>
> How can I do the lists, the if it can't find the file, then stop processing
> and end the job without getting the "job flushed" stuff. If it finds the
> file, I would like the job to continue on.
>
> Thanks,
>
> Jon
|
|
|