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

Count number of records and set return code.


IBM Mainframe Forums -> DFSORT/ICETOOL
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
muffirulz

New User


Joined: 14 Sep 2005
Posts: 74
Location: Atlanta, (USA)

PostPosted: Mon Jul 20, 2009 11:29 pm
Reply with quote

Hi,

Is there a way in sort or iceman through which we can count number fo records in a flat file and based on that set the return code of that step.

For example, in my case I need to count records in a file and then set return code of 16 if the number for records exceeds 100,000.

Please let me know if above is possible.

Thanks,
Muffazel
Back to top
View user's profile Send private message
Skolusu

Senior Member


Joined: 07 Dec 2007
Posts: 2205
Location: San Jose

PostPosted: Mon Jul 20, 2009 11:43 pm
Reply with quote

muffirulz,

Check the Smart DFSORT trick "Set RC=12 or RC=4 if file is empty, has more than n records, etc" here

www.ibm.com/support/docview.wss?rs=0&uid=isg3T7000094
Back to top
View user's profile Send private message
muffirulz

New User


Joined: 14 Sep 2005
Posts: 74
Location: Atlanta, (USA)

PostPosted: Tue Jul 21, 2009 1:07 am
Reply with quote

Hi Skolusu,

The code works fine but it can set only return code of 0 or 12. I need to set it to 16.

Thanks,
Muffazel
Back to top
View user's profile Send private message
Frank Yaeger

DFSORT Developer


Joined: 15 Feb 2005
Posts: 7129
Location: San Jose, CA

PostPosted: Tue Jul 21, 2009 2:36 am
Reply with quote

Quote:
I need to set it to 16.


Why? What will RC=16 do that RC=12 won't?
Back to top
View user's profile Send private message
muffirulz

New User


Joined: 14 Sep 2005
Posts: 74
Location: Atlanta, (USA)

PostPosted: Wed Jul 22, 2009 9:13 pm
Reply with quote

Thanks Skolusu.

I used the solution from the reference and it worked fine.
Back to top
View user's profile Send private message
View previous topic : : View next topic  
Post new topic   Reply to topic All times are GMT + 6 Hours
Forum Index -> DFSORT/ICETOOL

 


Similar Topics
Topic Forum Replies
No new posts Format data from multiple records usi... SYNCSORT 4
No new posts count contained values of several col... DB2 5
No new posts DB2 Query to get the count of Unique ... DB2 2
No new posts Sort SMF records? SYNCSORT 6
No new posts To Sort detail records in a file with... SYNCSORT 5
Search our Forums:


Back to Top