After-job subroutine

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
kumar_s
Charter Member
Charter Member
Posts: 5245
Joined: Thu Jun 16, 2005 11:00 pm

After-job subroutine

Post 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
Anjan Roy
Participant
Posts: 46
Joined: Mon Apr 12, 2004 9:51 am
Location: USA

Post 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
Mat01
Premium Member
Premium Member
Posts: 50
Joined: Wed Jun 02, 2004 11:12 am
Location: Montreal, Canada

Post 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
kumar_s
Charter Member
Charter Member
Posts: 5245
Joined: Thu Jun 16, 2005 11:00 pm

Post 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
Post Reply