MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Count records and copy only if more than 250 records.

 
Post new topic   This topic is locked: you cannot edit posts or make replies.   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities
View previous topic :: View next topic  
Author Message
bsaishankar
Beginner


Joined: 14 Apr 2009
Posts: 5
Topics: 2

PostPosted: Wed Jan 06, 2010 8:34 am    Post subject: Count records and copy only if more than 250 records. Reply with quote

How to use SYNCSORT to Create a new file only if the original file has records more or equal to 250 records. I see that the COUNT can be used but not sure if that can be used staraight in the comparsions .

This has to be done for 2 siutations.

Situation 1 file records:
Original file size is 500 bytes VBA format
There is 1 record/account.
Sampling of records will be as below
1 SZ1 AC#1 AAA..........
1 SZ1 AC#5 BBB...........
1 SZ1 AC#6 CCC....
1 SZ1 AC#2 DDD......


Situation 2 file records:
Original file size is 500 bytes VBA format
Each account will have 5 records.
There are 5 record/account, when counting they have to be grouped or if COUNT can be used,will have to divide by 5 with total count.

Sampling of records will be as below
1 SZ1 AC#1 AAA..........
1 SZ2 AC#1 ABA...........
1 SZ3 AC#1 ACA..........
1 SZ4 AC#1 ADA......
1 SZ5 AC#1 AEA.........
1 SZ1 AC#6 CCC....
1 SZ2 AC#6 CBC....
1 SZ3 AC#6 CCC....
1 SZ4 AC#6 CDC....
1 SZ5 AC#6 CEC....
1 SZ1 AC#2 DDD......
1 SZ2 AC#2 DDD......
1 SZ3 AC#2 DDD......
1 SZ4 AC#2 DDD......
1 SZ5 AC#2 DDD......


Any help is appreciated.
Back to top
View user's profile Send private message
bsaishankar
Beginner


Joined: 14 Apr 2009
Posts: 5
Topics: 2

PostPosted: Sat Jan 09, 2010 10:06 am    Post subject: Can this be accomplished by DFSORT if not SYNCOSORT?? Reply with quote

I asked if the situations can be resolved using SYNCSORT but if that is not supported, then this be resolved using DFSORT.
Back to top
View user's profile Send private message
bprasanna
Beginner


Joined: 05 Sep 2003
Posts: 119
Topics: 33
Location: Hyderabad

PostPosted: Sun Jan 10, 2010 1:18 pm    Post subject: Reply with quote

bsaishankar,
What do you want to write in the outut file when the count is greater than 250 ?

Thanks
_________________
----------------
Thanks&Regards
Bprasanna
Back to top
View user's profile Send private message
bsaishankar
Beginner


Joined: 14 Apr 2009
Posts: 5
Topics: 2

PostPosted: Sun Jan 10, 2010 8:43 pm    Post subject: Reply with quote

Just copy the original into a new file only if count is greater than 250.
Back to top
View user's profile Send private message
Frank Yaeger
Sort Forum Moderator
Sort Forum Moderator


Joined: 02 Dec 2002
Posts: 1618
Topics: 31
Location: San Jose

PostPosted: Mon Jan 11, 2010 12:12 pm    Post subject: Reply with quote

Please don't post on more than one Help board.
_________________
Frank Yaeger - DFSORT Development Team (IBM)
Specialties: JOINKEYS, FINDREP, WHEN=GROUP, ICETOOL, Symbols, Migration
DFSORT is on the Web at:
www.ibm.com/storage/dfsort
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   This topic is locked: you cannot edit posts or make replies.   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group