Can you help me out with this problem ? I've an INPUT file where the KEY starts at 15-th byte length 5 :
12345678901234DENIS
12345678901234MARCO
12345678901234DENIS
12345678901234MARCO
12345678901234MARCO
12345678901234DENIS
12345678901234MARCO
I want in OUTPUT:
RECORD TYPE PARTIAL
---------------------------------
DENIS 2
MARCO 2
TOTAL INPUT: 4
---------------------------------
DENIS 2
MARCO 2
TOTAL INPUT: 4
I tryed the following ICEMAN job:
//STEP0100 EXEC PGM=ICEMAN
//*
//SYSOUT DD SYSOUT=*
//SYSPRINT DD SYSOUT=*
//SORTOUT DD SYSOUT=*
//SORTIN DD *
12345678901234DENIS
12345678901234MARCO
12345678901234DENIS
12345678901234MARCO
//SYSIN DD *
SORT FIELDS=(15,5,CH,A)
OUTFIL REMOVECC,NODETAIL,
BUILD=(60X),
HEADER1=(6:'RECORD TYPE',32:'PARTIAL'),
HEADER2=(6:33'-'),
SECTIONS=(15,5,
TRAILER3=(6:15,5,30:COUNT=(EDIT=(I.III.IIT)))),
TRAILER1=(6:'TOTAL INPUT:',30:COUNT=(EDIT=(I.III.IIT)))
//*
//SYSOUT DD SYSOUT=*
//SYSPRINT DD SYSOUT=*
//SORTOUT DD SYSOUT=*
//SORTIN DD *
12345678901234DENIS
12345678901234MARCO
12345678901234DENIS
12345678901234MARCO
//SYSIN DD *
SORT FIELDS=(15,5,CH,A)
OUTFIL REMOVECC,NODETAIL,
BUILD=(60X),
HEADER1=(6:'RECORD TYPE',32:'PARTIAL'),
HEADER2=(6:33'-'),
SECTIONS=(15,5,
TRAILER3=(6:15,5,30:COUNT=(EDIT=(I.III.IIT)))),
TRAILER1=(6:'TOTAL INPUT:',30:COUNT=(EDIT=(I.III.IIT)))
but gives me the following error:
ICE143I 0 BLOCKSET SORT TECHNIQUE SELECTED
ICE250I 0 VISIT http://www.ibm.com/storage/dfsort FOR DFSORT PAPERS, EXAMPLES AN
ICE000I 1 - CONTROL STATEMENTS FOR 5694-A01, Z/OS DFSORT V1R5 - 10:16 ON WED MAY
SORT FIELDS=(15,5,CH,A)
OUTFIL REMOVECC,NODETAIL,
BUILD=(60X),
HEADER1=(6:'RECORD TYPE',32:'PARTIAL'),
HEADER2=(6:33'-'),
SECTIONS=(15,5,
TRAILER3=(6:15,5,30:COUNT=(EDIT=(I.III.IIT)))),
TRAILER1=(6:'TOTAL INPUT:',30:COUNT=(EDIT=(I.III.IIT)))
ICE201I 0 RECORD TYPE IS F - DATA STARTS IN POSITION 1
ICE751I 0 C5-K05352 C6-Q95214 C7-K90000 C8-K05352 E4-K06751 C9-BASE E5-K10929
ICE189A 0 BLOCKSET REQUIRED BUT COULD NOT BE USED - REASON CODE IS 65
ICE052I 3 END OF DFSORT
ICE250I 0 VISIT http://www.ibm.com/storage/dfsort FOR DFSORT PAPERS, EXAMPLES AN
ICE000I 1 - CONTROL STATEMENTS FOR 5694-A01, Z/OS DFSORT V1R5 - 10:16 ON WED MAY
SORT FIELDS=(15,5,CH,A)
OUTFIL REMOVECC,NODETAIL,
BUILD=(60X),
HEADER1=(6:'RECORD TYPE',32:'PARTIAL'),
HEADER2=(6:33'-'),
SECTIONS=(15,5,
TRAILER3=(6:15,5,30:COUNT=(EDIT=(I.III.IIT)))),
TRAILER1=(6:'TOTAL INPUT:',30:COUNT=(EDIT=(I.III.IIT)))
ICE201I 0 RECORD TYPE IS F - DATA STARTS IN POSITION 1
ICE751I 0 C5-K05352 C6-Q95214 C7-K90000 C8-K05352 E4-K06751 C9-BASE E5-K10929
ICE189A 0 BLOCKSET REQUIRED BUT COULD NOT BE USED - REASON CODE IS 65
ICE052I 3 END OF DFSORT
How can I resolve this ? Thank in advance Mr.Yaeger
Regards
Denis Dhimitri