You don't have to type your SAS code in uppercase (its not JCL).
If you know the records are in the same order then you should be able to just overwrite the characters starting at column 31 with the string from the record in the other file.
// EXEC SAS
//IPADFILE DD ...
//IXREF DD ...
//NEWFILE DD ...
//SYSIN DD *
data _null_;
file newfile ;
infile ipadfile;
input ;
put _infile_ @ ;
infile ixref;
input @6 string $char5.;
put @31 string $char5.;
run;
If you really want the file to look exactly the same you might need to specify the file attributes (RECFM, LRECL, etc) for the output file in the JCL. Isn't there a way in JCL to copy the attributes from another file? Or perhaps you could set them in the FILE statement of the SAS code.
... View more