Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 4650
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 Inefficient BUILD - VB records paddin... Daniel Prosser SYNCSORT 4 Thu Dec 14, 2017 3:52 pm
No new posts ISSUE IN copying Sequential file reco... thesumitk JCL & VSAM 2 Wed Dec 13, 2017 3:07 pm
No new posts Merging 2 records at multiple rows wi... Bijesh DFSORT/ICETOOL 2 Wed Dec 06, 2017 1:50 am
No new posts ISMF Difference between volume count ... upendrasri IBM Tools 2 Tue Dec 05, 2017 12:40 pm
No new posts Increment number for every group of r... srajendran2 DFSORT/ICETOOL 7 Thu Nov 09, 2017 10:31 pm

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