Page 1 of 1

Passing values between jobs (routines) in a sequence

Posted: Thu May 19, 2011 11:04 pm
by evee1
I need to build a job sequence that contains few jobs and I need to pass a value from one to the other. Job A calls an SP that returns a value. This value is used as an input parameter in the job B. How best to implement this scenario?
In the past I used sequential files to store values between jobs in a sequence, but I wonder whether there is any better way to do it and keep the file system out of the picture.

Posted: Fri May 20, 2011 10:12 am
by arunkumarmm
Set the value as user status in Job A and pass it on to Job B in the Sequence.

Posted: Mon May 23, 2011 1:14 am
by evee1
Thanks. In the meantime I have found the DSSetUserStatus. I might use this to pass the return value instead of the files.

Posted: Fri Jul 22, 2011 1:12 pm
by marpadga18
evee1 wrote:Thanks. In the meantime I have found the DSSetUserStatus. I might use this to pass the return value instead of the files.
@evee1 could you tell me what are the steps to pass the value to sequencer using User status?
Thanks M

Posted: Fri Jul 22, 2011 2:23 pm
by chulett
Three steps:

1. Do an exact search for DSSetUserStatus
2. Read thru the matching posts
3. Implement!

:wink: