Using OPC dataset trigger
Select messages from
# through # FAQ
[/[Print]\]

MVSFORUMS.com -> Job Control Language(JCL)

#1: Using OPC dataset trigger Author: chuck,  PostPosted: Mon May 01, 2023 4:30 pm
    —
Hi,
We use OPC (TWS) for scheduling jobs. We have a job that is dataset triggered - an external process ftps a file to the mainframe and "overlays" a preexisting flat file
The last step of this job creates an empty file for the next execution.

But the creation of this empty dataset causes the job to be triggered again- this time it will do nothing because the first step checks if the input file is empty and causes all other steps to be bypassed.

Is there some way to prevent the job being triggered again by the creating of the empty file?
I really know bupkis about OPC itself.

#2:  Author: kolusu, Location: San Jose PostPosted: Mon May 01, 2023 8:12 pm
    —
chuck,

You can code the FTP step to create the dataset rather than use a Pre-existing dataset. In the FTP cards , use
Code:
 QUOTE SITE LRECL=nnnnn RECFM=xy BLKSIZE=nnnnnn primary=a secondary=b cyls


This will allocate "a" primary and "b" secondary in cylinders for the dataset

#3:  Author: chuck,  PostPosted: Wed May 03, 2023 9:24 am
    —
kolusu wrote:
chuck,

You can code the FTP step to create the dataset rather than use a Pre-existing dataset. In the FTP cards , use
Code:
 QUOTE SITE LRECL=nnnnn RECFM=xy BLKSIZE=nnnnnn primary=a secondary=b cyls


This will allocate "a" primary and "b" secondary in cylinders for the dataset

Thanks Kolusu. I checked with our data transfer group and yes, it is a pattern they are familiar with. So in my JCL I will just delete that file at the end. Regards



MVSFORUMS.com -> Job Control Language(JCL)


output generated using printer-friendly topic mod. All times are GMT - 5 Hours

Page 1 of 1

Powered by phpBB © 2001, 2005 phpBB Group