sorry for not providing all the info . Here it is :
My JCL :
//jobcard
//STEP01 EXEC PGM=ICETOOL
//TOOLMSG DD SYSOUT=*
//DFSMSG DD SYSOUT=*
//IN DD DSN=XXX028.TEST.INFILE(INPUT),DISP=SHR
//OUT DD DSN=XXX028.TEST.OUTFILE(OUTFIL1),DISP=MOD <-- Abend SB14 for this PDS member, No abend when DISP = SHR, but output file had only the last line.
//*OUT DD DSN=XXX028.TEST.OUTFILE1,DISP=MOD <-- This is a PS file, It worked fine.
//TOOLIN DD *
SUBSET FROM(IN) TO(OUT) KEEP INPUT FIRST USING(CTL1)
SUBSET FROM(IN) TO(OUT) REMOVE INPUT FIRST LAST USING(CTL2)
SUBSET FROM(IN) TO(OUT) KEEP INPUT LAST USING(CTL3)
//CTL1CNTL DD *
INREC BUILD=(C'(''',1,9,C''',',80:X)
//CTL2CNTL DD *
INREC BUILD=(C'''',1,9,C''',',80:X)
//CTL3CNTL DD *
INREC BUILD=(C'''',1,9,C''' )',80:X)
/*
JES Log:
ICH70001I XXX028 LAST ACCESS AT 10:39:22 ON THURSDAY, MARCH 15, 2012
IEC217I B14-04,IGG0201Z,XXX028A,STEP01,OUT,0F05,TSOE06,XXX028.TEST.OUTFILE(OUTFIL1)
IEA995I SYMPTOM DUMP OUTPUT
SYSTEM COMPLETION CODE=B14 REASON CODE=00000004
TIME=10.40.46 SEQ=55773 CPU=0000 ASID=00A6
PSW AT TIME OF ERROR 075C1000 80E00F20 ILC 2 INTC 0D
NO ACTIVE MODULE FOUND
NAME=UNKNOWN
DATA AT PSW 00E00F1A - 41003038 0A0DB20A 00509808
AR/GR 0: 8EF4B48A/00E01124 1: 00000000/A4B14000
2: 00000000/0000DDE0 3: 00000000/00E010EC
4: 00000000/008B4888 5: 00000000/008B3714
6: 00000000/008B36AC 7: 00000000/008B3718
8: 00000000/008B36D4 9: 00000000/008B4338
A: 00000000/00F9D070 B: 00000000/00E00C52
C: 00000000/008B4338 D: 00000000/7E5BFA28
E: 00000000/00E00C52 F: 00000000/00000004
END OF SYMPTOM DUMP
IEF472I XXX028A STEP01 - COMPLETION CODE - SYSTEM=B14 USER=0000 REASON=00000004
IEF242I ALLOC. FOR XXX028A STEP01 AT ABEND
Data Set Name . . . . : XXX028.TEST.OUTFILE
General Data
Management class . . : MGMTDFLT
Storage class . . . : TSO
Volume serial . . . : TSOE06
Device type . . . . : 3390
Data class . . . . . : **None**
Organization . . . : PO
Record format . . . : FB
Record length . . . : 80
Block size . . . . : 27920
1st extent cylinders: 6
Secondary cylinders : 6
Data set name type : PDS
The input and Output PDS files has the same parameters. Hope this information is sufficient. Thanks