MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Validate trailer count

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL)
View previous topic :: View next topic  
Author Message
WallaceC
Beginner


Joined: 17 Dec 2002
Posts: 22
Topics: 10

PostPosted: Fri Jan 25, 2008 11:49 am    Post subject: Validate trailer count Reply with quote

I have a file with header, detail, and trailer with count as of follow:

Code:
----+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8
1HDR                    20080124                 
2DTL     111111
2DTL     222222
2DTL     333333
2DTL     444444
2DTL     555555
9TRL                    200801240000000005   


Trailer count should equal number of detail records, i.e. record with 2DTL. I would like know if trailer count does not match number of detail records on the file. Is there any way to validate it in one SORT step and how? Thanks.
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12378
Topics: 75
Location: San Jose

PostPosted: Fri Jan 25, 2008 11:59 am    Post subject: Reply with quote

WallaceC,

check this link

http://www.mvsforums.com/helpboards/viewtopic.php?t=7123&highlight=count+trailer+match

Hope this helps...

Cheers
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
WallaceC
Beginner


Joined: 17 Dec 2002
Posts: 22
Topics: 10

PostPosted: Fri Jan 25, 2008 12:42 pm    Post subject: Reply with quote

Thank you Kolusu. I tried the codes suggested and they worked.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL) All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group