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

retreiving max count records using Syncsort


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

New User


Joined: 15 Mar 2010
Posts: 9
Location: Chennai

PostPosted: Thu Jun 03, 2010 1:06 pm
Reply with quote

Hi, I tried to use the JCL in retreiving max count records using DFSORT

For the below scenario the above logic is not working. Also, the above logic is not working on SYNCSORT version 1.3 as it shows an error on HIT=NEXT

For Example :
My input file is as below - (Key length is 20 bytes)

000000000111111 020100511
000000000111111 020100514
000000000111111 020100514
000000000111111 120100511
000000000111111 120100514
000000000111111 120100514
000000000111112 020100521
000000000111112 020100524
000000000111112 020100524

The output file should be

000000000111111 020100514
000000000111111 120100514
000000000111112 020100524

But the output that I am getting is

000000000111111 020100511
000000000111111 020100514
000000000111111 120100511
000000000111112 020100521
000000000111112 020100524

which is wrong.

Also, If I have 2 or more dates which occurs maximum number of times for a prticular key combination,
I should get all those dates which has maximum occurences in the output.

For example:
The input file is

000000000111111 020100511
000000000111111 020100514
000000000111111 020100514
000000000111111 020100516
000000000111111 020100516
000000000111111 020100517
000000000111111 020100517
000000000111111 120100511
000000000111111 120100514
000000000111111 120100514
000000000111111 120100516
000000000111111 120100516
000000000111112 020100521
000000000111112 020100524
000000000111112 020100524

Then the output file should be

000000000111111 020100514
000000000111111 020100516
000000000111111 020100517
000000000111111 120100514
000000000111111 120100516
000000000111112 020100524

Could you please help me on this.
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: Thu Jun 03, 2010 8:23 pm
Reply with quote

Hello,

You have Syncsort and this part of the forum is for dfsort questions. . .

If your support people will install the current release of Syncsort, hit=next will work.
Back to top
View user's profile Send private message
Alissa Margulies

SYNCSORT Support


Joined: 25 Jul 2007
Posts: 496
Location: USA

PostPosted: Tue Jun 15, 2010 8:55 pm
Reply with quote

sguhan,

IFTHEN with HIT=NEXT is supported in SyncSort for z/OS 1.3.0. Support for WHEN=GROUP was included in SyncSort for z/OS 1.3.2. What release of SyncSort are you running so that we can help to provide you with an appropriate solution.
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 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
No new posts To find whether record count are true... DFSORT/ICETOOL 6
No new posts Validating record count of a file is ... DFSORT/ICETOOL 13
Search our Forums:

Back to Top