I use the following code OVRPRTF FILE(QPRTSPLQ) OUTQ(PRT01) WRKOUTQ OUTQ(&FROMLIB/&FROMQ) OUTPUT(*PRINT) */ Temporary file to copy records */ CPYSPLF FILE(QPRTSPLQ) TOFILE(QTEMP/ABCD) + JOB(&JOBNBR/&USER/&JOBNAME)
to extract the wrkoutq command output.
Later i use the ABCD file contents for processing like below CHGVAR &FNAME %SST(&ABCD 2 10) CHGVAR &FJOB %SST(&ABCD 82 10) CHGVAR &FUSER %SST(&ABCD 13 10) CHGVAR &FJOBN %SST(&ABCD 93 6) CHGVAR &FSPLNBR %SST(&ABCD 73 4)
However suddenly after so many years the contents extracted above are wrong. &FJOBN, &FJOB values are incorrect as the place from where it is extracted has changed now.
Please let me know if anyone has encounterd such kind of error and does the OS upgrade cause the change in the wrkoutq command output change, in terms of lenghts of fields?