The first 4 bytes wherever its 0003 i want to replace with 0050 and the before replacing want to write that records to another rejection file.
i.e.
Input: Data file
Output1: Data file with records replaced
Output2: Backup of the records replaced
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
Because the solution for sort related questions may vary from product to product, please ensure that you state clearly which sort product you are using.
If you are not sure, then by running a simple sort step shown below, you will be able to find out for yourself.
If the messages start with ICE then your product is DFSORT. Please also post the output of the complete line which has a message code ICE201I, as this will enable our DFSORT experts to determine which release of DFSORT that you have installed. This may also affect the solution offered.
If the messages start with WER or SYT then the product is SYNCSORT and should be posted in the JCL forum. Please also post the information telling which version of SYNCSORT is installed, as this may also affect the solution offered.
Thank you for taking your time to ensure that the valuable time of others is not wasted by offering inappropriate solutions which are not relevant due to the sort product being used and/or the release that is installed in you site.
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
kedianirmal wrote:
Its a SYNCSORT only, that's the reason i posted in JCL.
No offence intended, but a whole lot of people post in the wrong forum and other people spend time giving a solution that will not work because either the product is wrong, or they are given a solution for a different release level.
Which release of SYNCSORT do you have installed, as that too may affect the viable solutions.