Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Forum Index
 
Register
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
files whose record count varies with a given variance

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CA Products
View previous topic :: :: View next topic  
Author Message
janmejay
Warnings : 1

New User


Joined: 22 Jun 2007
Posts: 84
Location: bangalore

PostPosted: Fri Mar 08, 2019 9:35 pm    Post subject: files whose record count varies with a given variance
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.
WS-RECORD-COUNT = RECORD-COUNT(DDNAME)


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.

regards,
Janmejay
Back to top
View user's profile Send private message

View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CA Products All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Pack to Unpack conversion for sending... A_programmers COBOL Programming 13 Wed Sep 11, 2019 10:46 pm
This topic is locked: you cannot edit posts or make replies. Compare two files logic in COBOL Nishant Singhal COBOL Programming 4 Sun Aug 25, 2019 2:25 am
No new posts Concatenate two files of variable rec... Thiru S DFSORT/ICETOOL 3 Wed Aug 21, 2019 11:53 pm
No new posts How to count duplicate key records co... sergeyken SYNCSORT 0 Thu Jul 25, 2019 8:03 pm
No new posts ALTERNATE RECORD KEY usage for KSDS AIX sophia.lee COBOL Programming 1 Thu Jul 25, 2019 7:28 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us