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

Count the number of detail records , and check if it matches


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
murali922

New User


Joined: 25 Jul 2005
Posts: 92
Location: India

PostPosted: Tue Jul 10, 2007 6:15 pm
Reply with quote

Input File

Code:
H00000000000
D00000000001
D00000000002
D00000000003
D00000000004
D00000000005
T00000000500


The record which starts with 'H' is the header record.
The record which starts with 'D' is the detail record.
The record which starts with 'T' is the trailer record.

The trailer record would tell us how many detail records are there.

My requirement is, I have to count the number of detail records and check if the trailer is showing the current count as well.
This is just to make sure that the file is correct.
Back to top
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Tue Jul 10, 2007 6:24 pm
Reply with quote

murali922, based on previous topics by you, you appear to use SYNCSORT, so i will keep this post in the JCL forum. In the future, please specify which tool you are using.
Back to top
View user's profile Send private message
krisprems

Active Member


Joined: 27 Nov 2006
Posts: 649
Location: India

PostPosted: Tue Jul 10, 2007 7:05 pm
Reply with quote

murali922
check this topic http://ibmmainframes.com/viewtopic.php?t=21843&highlight=count
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Tue Jul 10, 2007 7:26 pm
Reply with quote

Hello,

That topic is for DFSORT, not Syncsort. It may or may not work for Syncsort.

Trying it with Syncsort will not hurt anything, but there is not a guarantee that it will work.

When posting suggestions, it is a good idea to make sure they work with the product being used (i.e. testing them before posting) and confirming that they do in fact work.
Back to top
View user's profile Send private message
krisprems

Active Member


Joined: 27 Nov 2006
Posts: 649
Location: India

PostPosted: Tue Jul 10, 2007 8:12 pm
Reply with quote

Hi Dick
Quote:
That topic is for DFSORT, not Syncsort.

It was known that it was a DFSORT solution, but it does work with SYNCSORT, and it is tested one!
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Tue Jul 10, 2007 8:19 pm
Reply with quote

Cool icon_cool.gif

I wish we had a list of which ones work with which versions of Syncsort (some do and others generate syntax errors) - and i've been told there will most likely be a new version of Syncsort early next year ('08') and it will include an updated SYNCTOOl that will include many/most of the current ICETOOL functions as well as have "real" documenttion.
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 -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Compare 2 files and retrive records f... DFSORT/ICETOOL 3
No new posts Compare 2 files(F1 & F2) and writ... JCL & VSAM 8
No new posts To get the count of rows for every 1 ... DB2 3
No new posts Compare only first records of the fil... SYNCSORT 7
No new posts Pulling a fixed number of records fro... DB2 2
Search our Forums:

Back to Top