View previous topic :: View next topic
|
Author |
Message |
chennai
New User
Joined: 12 Jun 2008 Posts: 26 Location: chennai
|
|
|
|
Hi,
I have the parm parameter for sort PARM='VSAMEMT=YES' which will help us not to abend the job if the input vsam file is empty.
general scenario is when PARM='VSAMEMT=YES' is not specified for PGM=SORT the job will abend if the vsam file is empty...
soo are there any parm parameter for sort just like above..
Thanks |
|
Back to top |
|
|
Garry Carroll
Senior Member
Joined: 08 May 2006 Posts: 1193 Location: Dublin, Ireland
|
|
|
|
Hi,
I'd suggest running DFSORT step using COUNT with EMPTY to set a cond code when the file is empty. You can then use the cond code to bypass the step that would abend with an empty file.
Regards,
Garry. |
|
Back to top |
|
|
Frank Yaeger
DFSORT Developer
Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
|
|
|
|
chennai,
DFSORT's VSAMEMT=YES parameter specifies that DFSORT accepts an empty VSAM input data set and processes it as having zero records.
Quote: |
soo are there any parm parameter for sort just like above. |
I don't understand your question. Please state what you're trying to do more clearly.
If you want to set a non-zero return code for an empty output file, you can use DFSORT's NULLOUT or NULLOFL parameter. |
|
Back to top |
|
|
chennai
New User
Joined: 12 Jun 2008 Posts: 26 Location: chennai
|
|
|
|
Hi frank,
thanks for ur reply...just want to know other than PARM='VSAMEMT=YES' parameter sending for sort do we have any other list of parameter we can pass to sort...
Hope you go the question now.
thanks |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
Back to top |
|
|
chennai
New User
Joined: 12 Jun 2008 Posts: 26 Location: chennai
|
|
|
|
Thanks dick...will look into that and will come back if any questions |
|
Back to top |
|
|
|