Joined: 27 May 2005 Posts: 6 Location: Shanghai, China
Hi,
I encounter a problem about the SORT OPTION VSAMEMT,
from the DFSORT R14 manual, we can see 'VSAMEMT' allow
to process empty VSAM input file, the job will can continue.
but actually I failed. Can anybody help explaine why?
Pls. see the following detail info:
Code:
ICE000I J - CONTROL STATEMENTS FOR 5740-SM1, DFSORT REL 14.0 -
SORT FIELDS=(1,22,CH,A)
OPTION VSAMEMT
INCLUDE COND=(96,2,CH,EQ,C'R3')
RECORD TYPE=F,LENGTH=1000
END
ICE078A J VSAM OPEN ERROR (168) SORTIN
ICE052I J END OF DFSORT
Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
DFSORT issued the following error message:
ICE078A J VSAM OPEN ERROR (168) SORTIN
If you look up the ICE078A error message, it says:
***
nnn is the VSAM OPEN ERROR return code (ACBERFLG) in decimal, for the data set with the indicated ddname.
Refer to Macro Instructions for Data Sets for the meaning of the error code and, if possible, take appropriate action.
***
In this case nnn is 168 and the indicated ddname is SORTIN.
If you look up the 168 code in Macro Instructions for Data Sets, it says:
***
The data set was not available for the type of processing that you specified. Or, an attempt was made to open a reusable data set with the reset option while another user had the data set open. The data set might have the INHIBIT attribute specified.
The data set cannot be opened for CBUF processing because it was already opened for non-CBUF processing. Or, the data set has conflicting CBUF attributes for the data and index components of the ACB.
For MACRF=RLS, an attempt was made to access a data set with NSR/LSR/GSR and the data set is currently accessed by RLS or DFSMStvs, or vice versa. Or, an attempt was made to access the data set with NSR/LSR/GSR and the data set is in lost or retained locks state.
For a USS file, the file has a file type that is not supported (for example, directories are not supported).
***
You need to figure out which of these cases is preventing you from opening the VSAM data set. I don't think it actually has anything to do with the VSAMEMT option.
Joined: 27 May 2005 Posts: 6 Location: Shanghai, China
Hi,
I have re-test the case:
Yes, the error not related to VSAMEMT option.
The following is the conclusion:
1. if the input VSAM file is empty and is opened by CICS, the sort abend;
2. if the input VSAM file is empty and is not opend by CICS, the sort OK;
3. if the input VSAM file is not empty and the sort is OK no matter if the file was opened by CICS.
From the beginning, I just question the error is related to the option VSAMEMT because the input VSAM file is empty but the test result is
not like that.