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

check if the sortout file is empty in the sort step itself


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

New User


Joined: 29 Jan 2007
Posts: 6
Location: Bangalore

PostPosted: Thu Feb 01, 2007 4:21 pm
Reply with quote

Hi,
How can we check if the sortout file is empty in the sort step itself.
I have some 92 outfiles and I need to check whether it is empty or not in the sort step itself.
Please help me.
Thanks!!!!!!!!!
Sree
Back to top
View user's profile Send private message
William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3156
Location: Tucson AZ

PostPosted: Thu Feb 01, 2007 4:30 pm
Reply with quote

Which sort?
Several utilities including DFSORT can generate an RC if the input is empty.
Back to top
View user's profile Send private message
sreelek

New User


Joined: 29 Jan 2007
Posts: 6
Location: Bangalore

PostPosted: Thu Feb 01, 2007 4:59 pm
Reply with quote

Hi,
I am telling about the DFSORT utility.
We have few records in the input file and after sort, I need to check whether it is empty or not.(preferably in the same step).
Back to top
View user's profile Send private message
William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3156
Location: Tucson AZ

PostPosted: Thu Feb 01, 2007 5:18 pm
Reply with quote

Did you search on sort empty trick ? See what it yielded:
Frank Yaeger wrote:
Quote:
Is possible to do this by using SORT?.


Yes. The "Set RC=12 or RC=4 if file is empty, has more than n records, etc" Smart DFSORT Trick at:

www.ibm.com/servers/storage/support/software/sort/mvs/tricks/

shows how to do it.
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 -> DFSORT/ICETOOL

 


Similar Topics
Topic Forum Replies
No new posts Compare 2 files and retrive records f... DFSORT/ICETOOL 0
No new posts WER247A SORTOUT HAS INCOMPATIBLE LRECL SYNCSORT 6
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 8
No new posts Need to set RC4 through JCL SORT DFSORT/ICETOOL 5
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
Search our Forums:

Back to Top