Page 1 of 1

After-job subroutine

Posted: Thu Sep 08, 2005 10:58 am
by kumar_s
Hi DSXians,
I need to find the way to use After-Job Subroutine for reading the output file and getting a information from a column and displaying the output as Valid or Invalid based up on that to the director log.
Output file is a sequetial file.
And also let me know how to pass the job parameter to the subroutines.

this is the sample i tried to test the usage of parameter in the subroutine...

Code: Select all

dsjob -run -param Test=File_name ifmdsd01 test_batch_after
Where the File_name is the parameter, but it looks for the file name as "File_name" it self.

regards
kumar

Posted: Thu Sep 08, 2005 11:35 am
by Anjan Roy
when you call the after job routine in the job properties, you would need to specify the arguments for the after job routine also.

e.g AfterJobRoutineName #file_name# in the after job routine box in the job properties

Posted: Thu Sep 08, 2005 11:36 am
by Mat01
Under UNIX, you should put a preceding $ char to call a variable.

Code: Select all

File_Name=my_file.csv

dsjob -run -param Test=$File_name ifmdsd01 test_batch_after
HTH

Mat

Posted: Thu Sep 08, 2005 9:47 pm
by kumar_s
Hi,
Thanx for your reply.
I understand the way it can be given in the unix. But may i know how can i specify that in Jobproperties window. And also let me know, how to pass the job parameter to the command. I used ExecSh for that.

how can i call a job using Exec TCL..... when i give the

Code: Select all

job_name #parameter#
it doesnt work.

regards
kumar