I need to copy all records from an input file to an output file that do not contain the string 'HDR' or 'EOF' in column 1. I also need to overlay the string ",1," with ",A," if it is found on a record that has the value '02' in column 1. The location of the string is between column 20 and 30. Only the first occurrence of the string should be overlaid."
Product: StarTool-FDM version 7.4.1 Detail: An output ESDS file gets corrupted after user batch job copy file with replace to a vsam esds starbat output
Use the replace command with the 'c' line command once the records have been selected using PEDIt with record selection. The dataset must be preallocated. Or, use STARBAT in batch.