Returing a value from one job to another
Posted: Sun Mar 16, 2008 2:23 am
I have a scenario where Job-A has the logic to load data from a source file into a target data table. This is an RCP PX job that takes several job parameters (Input source file name, RCP Schema file name, DB Connection details et al). One piece of information that gets fed into this job is the type of load namely, full or delta. This job is plugged into a sequence.
Now a database function exists that is used to determine what type of load should happen on a given day. All this function does is return a value of type VarChar(3). If I write a separate job (Job-2) to get the load-type using this db function I can easily pass that information to Job-A. To accomplish this i would plug this new job as a pre-processing job in my sequence.
What is the best approach to pass this information from Job-2 to Job-A? Can job-2 pass this to Job-A via user variables? or should i resort to writing the output from Job-2 into text file and then reading it in Job-A?
Might there be another approach(es). Would appreciate your feedback.
Thanks in advance for your time,
Now a database function exists that is used to determine what type of load should happen on a given day. All this function does is return a value of type VarChar(3). If I write a separate job (Job-2) to get the load-type using this db function I can easily pass that information to Job-A. To accomplish this i would plug this new job as a pre-processing job in my sequence.
What is the best approach to pass this information from Job-2 to Job-A? Can job-2 pass this to Job-A via user variables? or should i resort to writing the output from Job-2 into text file and then reading it in Job-A?
Might there be another approach(es). Would appreciate your feedback.
Thanks in advance for your time,