Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
467 views
in Technique[技术] by (71.8m points)

scheduler - How to start a DataStage Sequence job when a when file comes to the server

I’m looking to build a process that triggers a DataStage Sequencer job when any file comes to the server’s landing zone. CA7 is the scheduler and the file naming convention comes in many different flavors, including the file extensions. Also, some file naming conventions contain date timestamp. I’m new to this activity so please bear with me if I ask silly follow on questions.

Thanks in advance for any help.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

Check out the Wait for File stage in the Sequence

It has options to wait fr a file to appear (or disappear) and a timelimit before it times out. So you have to start the job at a certain time but the processing will start ince the file appears. The stage expects a filename though - but you could do a ls or similar command to get the filename and send that as a parameter to your job.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...