View previous topic :: View next topic
|
Author |
Message |
murali922
New User
Joined: 25 Jul 2005 Posts: 92 Location: India
|
|
|
|
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 |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
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 |
|
|
krisprems
Active Member
Joined: 27 Nov 2006 Posts: 649 Location: India
|
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
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 |
|
|
krisprems
Active Member
Joined: 27 Nov 2006 Posts: 649 Location: India
|
|
|
|
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 |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Cool
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 |
|
|
|