How to find a reject number.


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting How to find a reject number.
# 1  
Old 09-08-2011
How to find a reject number.

Hi, Unix Gurus,
I have a log file as following:
Code:
WRT_8036 Target: AAA (Instance Name: [AAA])
WRT_8038 Inserted rows - Requested: 10000      Applied: 10000      Rejected: 0          Affected: 10000     

WRITER_1_*_1> WRT_8161 
TARGET BASED COMMIT POINT  Fri Aug 26 18:19:23 2011

WRT_8036 Target: AAA (Instance Name: [AAA])
WRT_8038 Inserted rows - Requested: 20000      Applied: 20000      Rejected: 1          Affected: 20000     

READER_1_1_1> BLKR_16019 Read [23638] rows, read [0] error rows for source table [BBB] instance name [BBB]
READER_1_1_1> BLKR_16008 Reader run completed.
WRITER_1_*_1> WRT_8168 End loading table [AAA] at: Fri Aug 26 18:19:23 2011
WRITER_1_*_1> WRT_8141 
Commit on end-of-data  Fri Aug 26 18:19:23 2011

WRT_8036 Target: AAA (Instance Name: [AAA])
WRT_8038 Inserted rows - Requested: 23638      Applied: 23638      Rejected: 0          Affected: 23638     

WRITER_1_*_1> WRT_8035 Load complete time: Fri Aug 26 18:19:23 2011

LOAD SUMMARY
============

WRT_8036 Target: AAA (Instance Name: [AAA])
WRT_8038 Inserted rows - Requested: 23638      Applied: 23638      Rejected: 0          Affected: 23638     


WRITER_1_*_1> WRT_8043 *****END LOAD SESSION*****
WRITER_1_*_1> WRT_8006 Writer run completed.
MANAGER> PETL_24031 
***** RUN INFO FOR TGT LOAD ORDER GROUP [1], CONCURRENT SET [1] *****
Thread [READER_1_1_1] created for [the read stage] of partition point [SQ_BBB] has completed.
    Total Run Time = [4.448632] secs
    Total Idle Time = [0.000000] secs
    Busy Percentage = [100.000000]
Thread [TRANSF_1_1_1] created for [the transformation stage] of partition point [SQ_BBB] has completed.
    Total Run Time = [4.401562] secs
    Total Idle Time = [4.118804] secs
    Busy Percentage = [6.424027]
    Transformation-specific statistics for this thread were not accurate enough to report.
Thread [WRITER_1_*_1] created for [the write stage] of partition point [AAA] has completed.
    Total Run Time = [4.422019] secs
    Total Idle Time = [2.934487] secs
    Busy Percentage = [33.639196]

MANAGER> PETL_24005 Starting post-session tasks. : (Fri Aug 26 18:19:24 2011)
MANAGER> PETL_24029 Post-session task completed successfully. : (Fri Aug 26 18:19:24 2011)
MAPPING> TM_6018 The session completed with [0] row transformation errors. 
MANAGER> PETL_24002 Parallel Pipeline Engine finished.
DIRECTOR> PETL_24012 Session run completed successfully.
DIRECTOR> TM_6022 

SESSION LOAD SUMMARY
================================================

DIRECTOR> TM_6252 Source Load Summary.
DIRECTOR> CMN_1740 Table: [SQ_BBB] (Instance Name: [SQ_BBB])
     Output Rows [23638], Affected Rows [23638], Applied Rows [23638], Rejected Rows [0]
DIRECTOR> TM_6253 Target Load Summary.
DIRECTOR> CMN_1740 Table: [AAA] (Instance Name: [AAA])
     Output Rows [23638], Affected Rows [23638], Applied Rows [23638], Rejected Rows [1]
DIRECTOR> TM_6023 
===================================================

DIRECTOR> TM_6020 Session [CCC] completed at [Fri Aug 26 18:19:24 2011].

I need find if the log contains any rejected records, if Rejected Rows >0
then I need send to a file.
Smilie

Can anybody help me out?

Thanks in advance
ken002
# 2  
Old 09-08-2011
Code:
awk '/Rejected: / && $10 > 0 {print "Something got rejected"}' inputLogFile

--ahamed
This User Gave Thanks to ahamed101 For This Post:
# 3  
Old 09-08-2011
Thanks Ahamed
It works perfect
ken002
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

awk to find number in a field then print the line and the number

Hi I want to use awk to match where field 3 contains a number within string - then print the line and just the number as a new field. The source file is pipe delimited and looks something like 1|net|ABC Letr1|1530||| 1|net|EXP_1040 ABC|1121||| 1|net|EXP_TG1224|1122||| 1|net|R_North|1123|||... (5 Replies)
Discussion started by: Mudshark
5 Replies

2. Ubuntu

NOQUEUE: reject: Relay access denied - Postfix

Hello, I am trying to setup a mail server (Postfix) on Ubuntu Server at my end but facing Relay access denied issue. Mail Server DNS is mydomain.com and MX record is also added to the DNS server for the same. When i am sending out emails from outer domain to user1@mydomain.com, I configured... (2 Replies)
Discussion started by: sunnysthakur
2 Replies

3. Shell Programming and Scripting

How to find line number?

I have a data file (which has five columns) from which im finding column count of all the records and writing into separate file say "colcnt.txt". And I find one (or more) records have less column counts (i.e split records). I need to know which record(s) have that split scenario. Is there any way... (4 Replies)
Discussion started by: Prashanth B
4 Replies

4. IP Networking

iptables ACCEPT & REJECT

Hey everyone, something curious I found. I was studying up on iptables, and saw that my filter table, has it's INPUT chain to accept all incoming packets..and then to reject all incoming packets. Am I reading this right? take a look. I couldn't format it properly, so I stuck it on a pastebin and... (4 Replies)
Discussion started by: Lost in Cyberia
4 Replies

5. Shell Programming and Scripting

Reject the record if the record in the next line does not begin with 2.

Hi, I have a input file with the following entries: 1one 2two 3three 1four 2five 3six 1seven 1eight 1nine 2ten 2eleven 2twelve 1thirteen 2fourteen The output should be: (5 Replies)
Discussion started by: supchand
5 Replies

6. Shell Programming and Scripting

Reject the record if the record in the next line does not satisfy the pattern

Hi, I have a input file with the following entries: 1one 2two 3three 1four 2five 3six 1seven 1eight 1nine 2ten The output should be 1one 2two 3three 1four 2five 3six (2 Replies)
Discussion started by: supchand
2 Replies

7. Shell Programming and Scripting

How to reject row from one file to another depending upon some condition

Hi I have a input file say abc.dat which contains data as below name~address~email~ID john~newyork~john@gmail.com~1500D steve~sydney~steve@abc.com~3451E Now if length of name is > 50 or ID is null then the row should rejected to another file say reject.dat along with reason for rejection... (2 Replies)
Discussion started by: saurav2602
2 Replies

8. Shell Programming and Scripting

how to find number of words

please help me for this "divide the file into multiple files containing no more than 50 lines each and find the number of words of length less than 5 characters" (3 Replies)
Discussion started by: annapurna konga
3 Replies

9. Shell Programming and Scripting

Need to find Unique not used Number

Wrote a script to create a hidden account in OS X. It works perfect but I need to check if the UID is already in use before I tried to create the account. dscl . list /Users UniqueID | awk '{print $2}' | while read UIDS do if ; then echo "UID Is Already in USE" i=`expr "$2" - 1` echo... (4 Replies)
Discussion started by: elbombillo
4 Replies

10. AIX

how to find serial number

hi how to find ( server machine )serial number throught the command in AIX thanks for your replay (3 Replies)
Discussion started by: chomca
3 Replies
Login or Register to Ask a Question