I am trying to make a report with display and sort, but it would not create the report at first place.
My code is:
//EXAMP JOB A402,PROGRAMMER
//TOOLRUN EXEC PGM=ICETOOL,REGION=1024K
//TOOLMSG DD SYSOUT=*
//DFSMSG DD SYSOUT=*
//REPORT DD SYSOUT=*
//TOOLIN DD *
SORT FROM (IN) TO (SORTTEMP)
INCLUDE COND=(31,1,CH,EQ,C,'P')
SORT FIELDS=(23,8,CH,A,71,2,CH,A)
SUM FIELDS=(60,11,ZD)
DEFAULTS LIST(SHOWDEF)
DISPLAY FROM(SORTTEMP) LIST(REPORT)-
TITLE('PAYMENTS BY TELLER') PAGE -
HEADER('TELLER') ON(23,8,CH)-
HEADER('PAYMENTS') ON (60,11,ZD)-
BTITLE('TRANSFER TYPE') BREAK(71,2,CH)-
BTOTAL('SUBTOTAL')
/*
//IN DD DSN='SOME.INPUT.DATASET', DISP=SHR
//SORTTEMP DD DSN=&&SORTTEMP,DCB=SURCICS.ZEUSBANK.TXNOFFLD
//SHOWDEF DD SYSOUT=*
//SORTOUT DD DSN=&&SORTTEMP
//TOOLRUN EXEC PGM=ICETOOL,REGION=1024K
//TOOLMSG DD SYSOUT=*
//DFSMSG DD SYSOUT=*
//REPORT DD SYSOUT=*
//TOOLIN DD *
SORT FROM (IN) TO (SORTTEMP)
INCLUDE COND=(31,1,CH,EQ,C,'P')
SORT FIELDS=(23,8,CH,A,71,2,CH,A)
SUM FIELDS=(60,11,ZD)
DEFAULTS LIST(SHOWDEF)
DISPLAY FROM(SORTTEMP) LIST(REPORT)-
TITLE('PAYMENTS BY TELLER') PAGE -
HEADER('TELLER') ON(23,8,CH)-
HEADER('PAYMENTS') ON (60,11,ZD)-
BTITLE('TRANSFER TYPE') BREAK(71,2,CH)-
BTOTAL('SUBTOTAL')
/*
//IN DD DSN='SOME.INPUT.DATASET', DISP=SHR
//SORTTEMP DD DSN=&&SORTTEMP,DCB=SURCICS.ZEUSBANK.TXNOFFLD
//SHOWDEF DD SYSOUT=*
//SORTOUT DD DSN=&&SORTTEMP
I was expecting a report, but that didn't happen.
Edited to remove real data set name