I want a script to view the complete log information of data stage job from UNIX IBM AIX.


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting I want a script to view the complete log information of data stage job from UNIX IBM AIX.
# 1  
Old 01-03-2013
I want a script to view the complete log information of data stage job from UNIX IBM AIX.

Hi,

I am working on data stage 8.7 version and I want a script a to view the all log information of the data stage job from UNIX environment.

Can you please help me out by give the script.

Thanks in advance...
# 2  
Old 01-03-2013
We can help you to write a script on your own and for that we need your exact requirement, sample inputs and output required.

We just can't write a script for you Smilie
# 3  
Old 01-03-2013
I found the solution for display the log info by use the following command
Code:
dsjob -logdetail <project name> <job name> >> log.txt

shows full log of the job and writing the log file as we directed.

But same thing i want a script for multiple jobs to check the complete log detail and job status.
Code:
dsjob -jobinfo <project name> <job name> >> log1.txt


Since i am new to unix shell script I started learing script.

Thanks in advance

---------- Post updated at 04:24 AM ---------- Previous update was at 04:23 AM ----------

If you are making that command to execute for multiple jobs it will be great for me..

Last edited by Franklin52; 01-03-2013 at 08:07 AM.. Reason: Please use code tags for data and code samples
# 4  
Old 01-03-2013
How many jobs do you have in your list?
# 5  
Old 01-04-2013
total we have 10 sequnce jobs.

---------- Post updated 01-04-13 at 01:13 AM ---------- Previous update was 01-03-13 at 08:35 AM ----------

I want only aborted jobs status from those 10 sequncers...
# 6  
Old 01-04-2013
@victory:

So, does this command
Code:
dsjob -jobinfo <project name> <job name> >> log1.txt

gives you the job status alone? or the full details? Can you please post some example output of that command as well? I don't think this is hard to get it done for 10 jobs Smilie
# 7  
Old 01-04-2013
Code:
#!/bin/ksh
echo `touch /home/afuarc2/$i.jobstatus.txt`
for i in INT_SEQ_MST_PLM_RMS_SKU_PACK_000 INT_SEQ_MST_PIM_LEG_ORG_DIV_REG_000 

do
   `dsjob -logdetail SMART $EachLine >>  `
done > /home/afuarc2/JobList.txt

I have prepared the above script to get the log files in home directory.
But I want those files to my mail id.

I tried echo <subject> | mail -v <mail id>.

how to add this command to my script to get the log to my mail id.

---------- Post updated at 06:44 AM ---------- Previous update was at 06:43 AM ----------

can you please help me out.

Last edited by Franklin52; 01-04-2013 at 12:53 PM.. Reason: code tags
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Run the Script from any stage by updating data from Oracle Table.

I have 100 Scripts, each containing 10-15 SQL's in them. Each Script run for 40 mins to 1 hour 30 mins. In the event of Failure in any step, if i re-start the Script, it will start running from the beginning. Which is waste of time. So in order handle this, i made the script to run from the... (7 Replies)
Discussion started by: kiran1992
7 Replies

2. UNIX for Beginners Questions & Answers

Automation script for email alert when a job get complete with status successful.

Guyz, Please let me know about script which is to be sending an automatic email to particular mail id's when a monotoring job get complete with status successful. (1 Reply)
Discussion started by: Rehan Ahmad
1 Replies

3. UNIX for Dummies Questions & Answers

Data stage - UNIX

HI I am a datastage (ETL) developer , i have sequence and it has got one job to run , by using UNIX / Shell script , i have to find " after running the job in sequence successfully , i need to find whether it has inserted any no of records into the table or not "? both source and targets DB2... (2 Replies)
Discussion started by: sopinti
2 Replies

4. Shell Programming and Scripting

UNIX command/script svn log to get just the files information

Just need the directory name and files changes information in svn log This is my svn log verbose: svn log -v //test/svn/Demo/branches/HelloWorld/Batch --limit 2 ------------------------------------------------------------------------ r133 | testuser1 | 2013-04-02 18:22:28 -0400 (Tue, 02 Apr... (22 Replies)
Discussion started by: iaav
22 Replies

5. Windows & DOS: Issues & Discussions

AutoSys Job not waiting for script to complete

I'm not sure if this is the right place to post this issue...but here goes... I am converting a set of windows jobs from Control-M to AutoSys r11.3. The same command line is being executed in both systems. The Control-M job runs to compltion in about 1.5 hours, waiting for the entire batch... (3 Replies)
Discussion started by: ajomarquez
3 Replies

6. Shell Programming and Scripting

Cron job is not working in the desired manner on IBM AIX

Hi, I have created a cron job on IBM AIX but it is not working in desired manner ! Here are the steps which I have followed :- #!/bin/ksh #------------------------------------------------------------------ find /some/file/at/the/user/side/test.log -exec cp {}... (8 Replies)
Discussion started by: acidburn_007
8 Replies

7. AIX

Migrating from HP Unix to IBM AIX 6.1

HI , We are in process to migrate from UNIX to AIX 6.1 version . I need to understand differences between commands that are used in UNIX and AIX. I want to make sure AIX has all command options avaliable from HP Unix.If any mismatch it should be addressed . Since many commands are used it... (2 Replies)
Discussion started by: Perlbaby
2 Replies

8. UNIX and Linux Applications

Log files to view job executed in Autosys -- Help ASAP

Hi all, I really need your help ASAP on this. Below is the description of my problem and a sketch of Autosys Job Activity Console ++++++++++++++++++++++++++++++++ File View Options +++++++++++++++++++++++++++++++ Job Name Description Status Command Machine... (1 Reply)
Discussion started by: sakal_woman
1 Replies

9. AIX

CPUs information on IBM AIX 4.3

Hi, I would like to know how can i get information like %user %kernel %idle etc for each cpu. Getting the infomation for the complete system cpu usage is given below but can you help me in getting each cpu information from cpu 0 to cpu n-1. Is there any kernel symbol for that and if there is how... (0 Replies)
Discussion started by: uiqbal
0 Replies

10. UNIX for Dummies Questions & Answers

HELP! UNIX AIX IBM C Compiler!

I currently have an IBM AIX UNIX MACHINE WITH VERSION 4 operating system. Already installed is a 3.1.4 version of the C Compiler that comes with the package. For the longest time this software ran fine until we changed our Company server and the IP addresses were changed. Now when the... (2 Replies)
Discussion started by: bobarob
2 Replies
Login or Register to Ask a Question