Re: HELP - Preventing access to input files for two concurrent jobs.



Check out the
DISP=OLD
JCL parameter.
"Catch_22" <catch_20_2@xxxxxxxxxxx> wrote in message
news:1132719750.184297.129550@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
> Hi,
>
> I have an issue I'm hoping to find a solution to. I work in a mainframe
> environment using z/OS.
>
> I have a program that reads in three files, it will use records from
> these files and output any records that wasn't used, to three
> corresponding output files. The input and output files are stored as
> GDGs.
>
> The issue I wish to safe guard against is an operator invoking the
> program in two different jobs at the same time. It is important that
> the input files only be used by one program at a time and that data
> used by the program is unique.
>
> I'm of the understanding that if a second job is started while the
> first is still running that the second job will wait to use the file
> being used in the first job - thus it will use data that may have
> already been used by the first job.
>
> Does anyone have any ideas on how it might be possible to prevent the
> second job from using the old GDG ..... or possibly using the next
> generation created by the first job when it has completed ?
>
> I know it's possible to prevent this happening for scheduled jobs via
> Zeke though we also have many manually executed jobs as well.
>
> Any help that people could provide would be greatly appreciated.
>
> Regards,
> Ian.
>


.



Relevant Pages

  • HELP: Preventing concurrent jobs from using the same input file.
    ... The input and output files are stored as ... GDGs. ... I'm of the understanding that if a second job is started while the ... already been used by the first job. ...
    (bit.listserv.ibm-main)
  • HELP - Preventing access to input files for two concurrent jobs.
    ... The input and output files are stored as ... GDGs. ... I'm of the understanding that if a second job is started while the ... already been used by the first job. ...
    (comp.lang.cobol)
  • Re: HELP - Preventing access to input files for two concurrent jobs.
    ... :>Once the first job has completed the second will start using GDGnot ... :>the latest GDG ) which has been created by the first job. ... :>When the second job is complete it will create GDG. ... I very rarely bother responding to challenge/response systems, ...
    (comp.lang.cobol)
  • Re: job execution order
    ... I think there's no guarantee that the first job will be executed before ... One has schedule which fires when Agent stars. ... >> Is it guaranteed that first job will be executed before second job ...
    (microsoft.public.sqlserver.programming)