I believe that you will need to read the file, writing to a new file, then replace (not in-place though) the original file. Suggest you review the DOC references, as well. And again share any updated/modified code with the forum as a post-reply, ideally in your SAS execution log, not just the code piece.
Explain the SAS environment and where the external file resides for additional guidance.
Also, I question the use of PAD, if you have variable-length data to copy - each PUT will pad the output record to the LRECL= amount specified, I believe. You should start with the bare minimum parameters and go from there.
Scott Barry
SBBWorks, Inc.
Message was edited by: sbb
Message was edited by: sbb
... View more