ibmCics.rewrite(new RewriteOptions.Builder() .fileName(<Filename>) .from(<From>) [.length(<Length>)] [.noHandle(true)] .build());
<Filename>The name of the file to write to. <From>The data to be written to the file. <Length>Optional length of the data to be written. noHandleOptional Boolean. If set to true, exceptions created by this command will be ignored.
EXEC CICS REWRITE FILE('CUSTFILE') FROM(WS-DATA) END-EXEC.
ibmCics.rewrite(new RewriteOptions.Builder() .fileName("CUSTFILE") .from(locDef.ws_Data) .build());