I am using same vsam file(esds file) as input and output during a below sort process. I got the below error. The same sort card went successfully performed when i changed the o/p dsn to an another name.
I have went through the below link given by Frank in one of his replies regarding vsam processing in sort.
ICE201I E RECORD TYPE IS V - DATA STARTS IN POSITION 5
ICE183A 0 COND NOT MET TO USE THE SAME VSAM DATASET FOR SORTIN AND SORTOUT
But while using same dataset name for in/p & o/p in FB format file rather than VSAM with the above sort card (INCLUDE COND=(1,5,CH,EQ,C'EWTRAN')), i am able to perform. Can you please suggest me where i went wrong?
Joined: 23 Nov 2006 Posts: 19270 Location: Inside the Matrix
To echo Garry's observation a bit more strongly. . .
It is completely unacceptable to overwrite the input data. Any organization that has a proper promotion process will never allow this to be promoted to Production (unless the preceeding step is a backup).
Even if there is a backup, it is better to use the backup as input and overwrite the original file.