Is there a way for us to name the DSJOBREPORT file?

A forum for discussing DataStage<sup>®</sup> basics. If you're not sure where your question goes, start here.

Moderators: chulett, rschirm, roy

Post Reply
DSShishya
Premium Member
Premium Member
Posts: 37
Joined: Tue Oct 27, 2009 9:43 pm

Is there a way for us to name the DSJOBREPORT file?

Post by DSShishya »

Hi all,

I'm using the DSJobReport in after job routine to get all the job details. Now here the DataStage names the report file by itself as JobName_YYYYMMDD_HHMMSS.txt. Is there a way for me to give the report a name of my choice?

Any help is greatly appreciated.

Thanks.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

No, but you can rename the report immediately it has been created.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
DSShishya
Premium Member
Premium Member
Posts: 37
Joined: Tue Oct 27, 2009 9:43 pm

Post by DSShishya »

Hi Ray,

Are you saying that I can rename the file within the after job routine command prompt or manually later?

Thanks
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Within the after-job subroutine if you wish. The file is closed before this is executed.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
DSShishya
Premium Member
Premium Member
Posts: 37
Joined: Tue Oct 27, 2009 9:43 pm

Post by DSShishya »

Please forgive my ignorance but..... How do I do that?
ArunaDas_Maharana
Participant
Posts: 42
Joined: Thu Dec 11, 2008 11:07 am

Post by ArunaDas_Maharana »

hi,

There could be couple of ways to achieving it.

1. AfterJobsubroutine - go to your -->JOb properties--> under general tab you will find Afterjobsubroutine give your rename command in Input value.

2. if DS is installed in unix , and you are using unix script to call your jobs , after your job finish you can give rename command in your unix script.
Thanks,
Aruna
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Use the supplied after-job subroutine ExecSH to execute your mv command.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
vamsi.4a6
Participant
Posts: 334
Joined: Sun Jan 22, 2012 7:06 am
Contact:

Post by vamsi.4a6 »

@ray.wurlod

We are using DSJobReport in after job routine to get Job Report Details.
How can we use both DSJobReport and ExecSH for a single Job. Please correct me if I am wrong?
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Wrap them in your own after-job subroutine (using CALL statements). You can use DSExecute rather than ExecSH within your own routine.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Post Reply