REG : Writing Logs From Director to Sequential File
Moderators: chulett, rschirm, roy
-
- Premium Member
- Posts: 112
- Joined: Mon Jul 11, 2005 7:54 am
REG : Writing Logs From Director to Sequential File
Hi,
Can any one lemme knw whether we can write the director logs for all the jobs in a project to a flat file . If so how...
Can any one lemme knw whether we can write the director logs for all the jobs in a project to a flat file . If so how...
Vindodand,
I assume you mean "let me know" when you posted "lemme knw". There are two main ways to do this and both involve a bit of work. If you like shell or batch programming then you can use the "dsjob" executable to get a list of jobs in the project and then list out their log file contents, you can then capture that output in a sequential file.
The other method is similar, except you would do this from within a DataStage BASIC routine or job.
Which way are you looking at doing this?
I assume you mean "let me know" when you posted "lemme knw". There are two main ways to do this and both involve a bit of work. If you like shell or batch programming then you can use the "dsjob" executable to get a list of jobs in the project and then list out their log file contents, you can then capture that output in a sequential file.
The other method is similar, except you would do this from within a DataStage BASIC routine or job.
Which way are you looking at doing this?
<a href=http://www.worldcommunitygrid.org/team/ ... TZ9H4CGVP1 target="WCGWin">
</a>
</a>
-
- Premium Member
- Posts: 112
- Joined: Mon Jul 11, 2005 7:54 am
\ArndW wrote:Vindodand,
I assume you mean "let me know" when you posted "lemme knw". There are two main ways to do this and both involve a bit of work. If you like shell or batch programming then you can use the "dsjob" executable to get a list of jobs in the project and then list out their log file contents, you can then capture that output in a sequential file.
The other method is similar, except you would do this from within a DataStage BASIC routine or job.
Which way are you looking at doing this?
Arnd,
I'm kinda new to DS Coding so i'm not sure which one is efficient enough ... It wld be gr8 if u cld help me out on this... Thnx 4 ur prompt rep...
Vinod,
unless you are using DSXchange from your telephone or other PDA without a full keyboard, I would be very appreciative if you could write instead of
I did ask you which method you feel more comfortable with - doing it from outside of DataStage inside a shell script or from inside of DataStage with DS/Basic?
unless you are using DSXchange from your telephone or other PDA without a full keyboard, I would be very appreciative if you could write
Code: Select all
It would be great if you could help me out on this... Thanks for your prompt reply
Neither of us is a native English speaker and it makes it much easier to read when we don't text at each other, and the saving in keystrokes is not that much in comparison to the understandability.It wld be gr8 if u cld help me out on this... Thnx 4 ur prompt rep"
I did ask you which method you feel more comfortable with - doing it from outside of DataStage inside a shell script or from inside of DataStage with DS/Basic?
<a href=http://www.worldcommunitygrid.org/team/ ... TZ9H4CGVP1 target="WCGWin">
</a>
</a>
-
- Premium Member
- Posts: 112
- Joined: Mon Jul 11, 2005 7:54 am
ArndW wrote:Vinod,
unless you are using DSXchange from your telephone or other PDA without a full keyboard, I would be very appreciative if you could writeinstead ofCode: Select all
It would be great if you could help me out on this... Thanks for your prompt reply
Neither of us is a native English speaker and it makes it much easier to read when we don't text at each other, and the saving in keystrokes is not that much in comparison to the understandability.It wld be gr8 if u cld help me out on this... Thnx 4 ur prompt rep"
I did ask you which method you feel more comfortable with - doing it from outside of DataStage inside a shell script or from inside of DataStage with DS/Basic?
Arnd,
Sure I will make it a point to key in words at full here on. I feel DS Basic shld be comfortable . I am not that gr8 in DS Basic but I think i can understand stuff a bit .
I started to put a shell program together and then realized that certainly this has already been described - click here to the get FAQ answer to your question.
<a href=http://www.worldcommunitygrid.org/team/ ... TZ9H4CGVP1 target="WCGWin">
</a>
</a>
The DS APIs are documented in your manuals, consider DSGetLogSummary and such. The command line dsjob is also well documented. How about you experiment with both? dsjob is really is to use, but the APIs give you more flexibility but require more programming. dsjob is easily used with a ksh or perl script but has less functionality.
Kenneth Bland
Rank: Sempai
Belt: First degree black
Fight name: Captain Hook
Signature knockout: right upper cut followed by left hook
Signature submission: Crucifix combined with leg triangle
Rank: Sempai
Belt: First degree black
Fight name: Captain Hook
Signature knockout: right upper cut followed by left hook
Signature submission: Crucifix combined with leg triangle
-
- Premium Member
- Posts: 112
- Joined: Mon Jul 11, 2005 7:54 am
Hi,ArndW wrote:I started to put a shell program together and then realized that certainly this has already been described - click here to the get FAQ answer to your question.
I tried logging in and it says the topic requested does not exist...
Just click on the colored text, it should bring you straight to the post. At least it does when I cliock on it. You could also try browsing the FAQ for a subject titled "FAQ Suggestion: How can the director log be output to a file".
<a href=http://www.worldcommunitygrid.org/team/ ... TZ9H4CGVP1 target="WCGWin">
</a>
</a>
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact: