Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

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

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: Count the number of detail records , and check if it matches
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

Moderator Team Head


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

PostPosted: Tue Jul 10, 2007 6:24 pm    Post subject: Re: Count the number of detail records , and check if it mat
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    Post subject:
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

Site Director


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

PostPosted: Tue Jul 10, 2007 7:26 pm    Post subject:
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    Post subject:
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

Site Director


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

PostPosted: Tue Jul 10, 2007 8:19 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Removing Duplicates based on certain ... chandracdac DFSORT/ICETOOL 8 Fri Dec 09, 2016 4:40 am
No new posts Limit duplicate records in the SORT pshongal SYNCSORT 6 Mon Nov 21, 2016 12:54 pm
No new posts What is the command to check MODE of ... rohanthengal CLIST & REXX 7 Fri Nov 18, 2016 1:48 pm
No new posts Check System time(Minute) Using TIME1... balaji81_k DFSORT/ICETOOL 5 Fri Nov 11, 2016 10:53 am
No new posts How to split the records using the am... vnktrrd DFSORT/ICETOOL 24 Fri Oct 28, 2016 7:33 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us