IBM Support

IEC036I 002-F7 running DFSORT with SORTIN and SORTOUT pointing to the same data set

How To


Summary

Running ICEMAN where SORTIN and SORTOUT DD statements point to the same data set can see unpredictable results including IEC036I 002-F7 if the data set is zEDC compressed.

Steps

For a copy operation using ICEMAN, the SORTIN data set should not be the same as the SORTOUT data set or any OUTFIL data set because this can cause lost or incorrect data or unpredictable results.

https://www.ibm.com/docs/en/zos/2.5.0?topic=statement-general-coding-notes

Example job:
 

//SORT002 EXEC PGM=ICEMAN,PARM='LIST',COND=(4,LT)
//SORTIN DD DSN=DSN1,DISP=SHR
//SORTOUT DD DSN=DSN1,DISP=SHR
//SYSOUT DD SYSOUT=*
//SYSPRINT DD SYSOUT=*
//SYSIN DD *
SORT FIELDS=COPY
INREC BUILD=(2,132,C' |',SEQNUM,10,ZD,
C'|0000000000|0000000000|N|N| |',180:X)
OUTREC IFTHEN=(WHEN=(1,7,CH,EQ,C'DR44017'),
OVERLAY=(146:135,10,168:C'Y',172:C'DR44017')),
IFTHEN=(WHEN=(1,21,CH,EQ,C'END OF REPORT DR44017'),
OVERLAY=(157:135,10,170:C'Y',172:C'DR44017')),
IFTHEN=(WHEN=(93,17,CH,EQ,C'END OF PROCESSING'),
OVERLAY=(157:135,10,170:C'Z',172:C'ENDRPT '))
RECORD TYPE=F
/*

[Click and drag to move]
​


Document Location

Worldwide


[{"Type":"MASTER","Line of Business":{"code":"LOB56","label":"Z HW"},"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Product":{"code":"SWG90","label":"z\/OS"},"ARM Category":[{"code":"a8m0z0000000AE9AAM","label":"DFSMS-\u003EBase Access Methods-\u003ECompression-\u003Ez\/EDC compression"}],"ARM Case Number":"TS015016680","Platform":[{"code":"PF035","label":"z\/OS"}],"Version":"All Versions"}]

Document Information

More support for:
z/OS

Component:
DFSMS->Base Access Methods->Compression->z/EDC compression

Software version:
All Versions

Operating system(s):
z/OS

Document number:
7145038

Modified date:
22 March 2024

UID

ibm17145038

Manage My Notification Subscriptions