verification?


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers verification?
# 1  
Old 06-06-2005
Question verification?

I'm really new at this and wondering how I would go about adding code to my script to verify that all records loaded successfully? (I am loading a file into a table) i'm using the Korn shell.
I'm also having trouble verifying parts in the header as i do not really understand the header and trailer concept? I will need to verify that the record count in my header matches the number of records sent. Any help with this would be greatly appreciated. Thanks.
# 2  
Old 06-06-2005
wc -l filename

gives the number of lines in a file. What you seem to want is fuzzy. What is a table?
A file or a database table?
# 3  
Old 06-06-2005
Well, first, I am acquiring file names in chronological order, then processing those files and after processing I want to verify the record count in the header matches the number of records sent, I will then delete the header and trailer records before the database load. After loading the file into the table I need to make sure they loaded successfully. does this help?
# 4  
Old 06-06-2005
this may help also, I need to create a count in my file to compare to the header count in another file ttlacct where record types A are for header record, and the number of header records on the file will be populated in the tract field of the ttlacct table.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Forum Support Area for Unregistered Users & Account Problems

Can't get past google verification

Trying to register the Verification step is blocking me. I've allowed all the intrusive Google trackers and Java. Tried different browsers with no blocking. Nothing is working. Says: "Try again later Your computer maybe ... " What weird is in this forum section I can pass the recaptcha but in... (1 Reply)
Discussion started by: Unregistered
1 Replies

2. Programming

ECDSA verification

Using ECDSA, how do you verify integrity of Data (D), Given the value for the following: Random number (r) Signature (s) ECpublic Key (K) Thanks. (0 Replies)
Discussion started by: dragonpoint
0 Replies

3. Shell Programming and Scripting

Help about comment verification

Hello, I have a file, in which line 40 is commented. It is basically a cron job, #05,35,50 * * * * /usr/local/scripts/my.sh how i can i verify the line 40 is commented, if not then give me message not commented, otherwise provide us message it is commented. (5 Replies)
Discussion started by: learnbash
5 Replies

4. Shell Programming and Scripting

Field verification script help

Hello again unix.com I need some help regarding a script. I have: function checkform ( form ) { if (form.pass.value.length < 6) { alert( "Error." ); form.pass.focus(); document.getElementById('pass').style.backgroundColor="#FFFFFF"; return... (2 Replies)
Discussion started by: galford
2 Replies

5. Shell Programming and Scripting

Verification on shell script

hello i have writing a shell script to download and run some packages the only way that i use to verify download pack is , limit users ip to download from main server, if wget can download file (verified) then script run by execute it sh pack76.sh else show and error (stupid solution ha?) ... (8 Replies)
Discussion started by: nimafire
8 Replies

6. Solaris

Verification of the Boot Block

Guys, I have a rusty question that I need help with. It has been a while since I supoprted Solaris boxes. I have several hundred solaris systems running Sol 8 and Sol 10. I built the original 250 but they have added several hundred more and I am seeing issues with these boxes that I need to... (2 Replies)
Discussion started by: scottzx7rr
2 Replies

7. Shell Programming and Scripting

Script Verification

Hi eveyone I am planning to use crontab to delete all files in my donwloads directory that are older than one hour I will be using crontab to run this script find /home/kee/downloads/* -daystart -mmin +59 -type f -name -exec rm -r {}\; could you please let me know if the above... (1 Reply)
Discussion started by: k33k00
1 Replies

8. AIX

HACMP verification

Hi, every midnight hacmp verification is run automatically. clverify.log says there is no erro bu clutils.log says there is 1 error but when i look at the clverify.log no problem at all. Below is the output of the clverify.log what may be the cause of the error in the clutils.log file. Thanks,... (1 Reply)
Discussion started by: mmersoylu
1 Replies

9. Programming

htable + verification

hello every body, I have to verifiy if the param_key is selectionned twice or more and to print only one occurence i'm using htable what's the good implementation to add to the code to verify this. code : { char *tmpStr = NULL; ght_iterator_t iterator_param; void... (0 Replies)
Discussion started by: kamel.seg
0 Replies

10. Shell Programming and Scripting

ftp file verification

I need a simple method to verify that an automated ftp script was successful. The ftp command can exit without error and the file may not have been successfully sent. It's rare, but it happens. I could write a script that would use md5sum before and after sending the file. But, what I really... (7 Replies)
Discussion started by: gopat
7 Replies
Login or Register to Ask a Question