IBM Mainframe Forum Index
Log In
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register

files whose record count varies with a given variance

IBM Mainframe Forums -> CA Products
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Warnings : 1

New User

Joined: 22 Jun 2007
Posts: 85
Location: bangalore

PostPosted: Fri Mar 08, 2019 9:35 pm
Reply with quote

Hi Friends,

I have a requirement where i wanted to develop an automation process for files whose record counts drops by a set threshold, then job will send an email Alert to the support team to research further.

Explanation - Approach is to create an Easytrieve program that will first count the number of records of say 50 files of today.

1) Get the record count of the files.

2) There is a DB2 table with 3 fields as below-

File/DB2 Name Rec. count Tolerance
XXXXX 30000 15
YYYYYY 70000 20

File/DB2 Name will be primary key. The record count mentioned in table is
previous Day Record count.

Now Easytrieve program will read the count from the table .

3. Calculate the variance percentage
Variance percentage = ((Previous record count – current record count)/ Previous record count) x 100

4. If the variance percentage is greater than the tolerance limit then write into the output file.

5. If the output file is not empty (i.e. variance is greater than the tolerance limit) send an email.

6. Update the table with the current record count

Just wanted your opinion if this approach is feasible and can be achieved.

Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> CA Products


Similar Topics
Topic Forum Replies
No new posts Build a trailer with total an count SYNCSORT 6
No new posts SORT for dynamic trailer record + CSV... DFSORT/ICETOOL 14
No new posts Selective extract of multi-record-typ... SYNCSORT 4
No new posts Read two files CLIST & REXX 4
No new posts COBOL Table data to a flat file with ... COBOL Programming 8
Search our Forums:

Back to Top