IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Facing U0007 abend


IBM Mainframe Forums -> DFSORT/ICETOOL
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
l.nethaji

New User


Joined: 16 Mar 2008
Posts: 90
Location: tamil nadu

PostPosted: Mon Jan 18, 2010 12:32 pm
Reply with quote

Hi,

The following is my sort program to remove the duplicates .While i execute it i am facing the below abend


SORT PROGRAM:
Code:
//STEP1   EXEC PGM=SORT                                       
//SYSOUT   DD  SYSOUT=*                                       
//SORTIN   DD DSN=DPRACE.D372988.TEST37,DISP=SHR               
//SORTOUT  DD DSN=DPRACE.D372988.TEST37.OUT,                   
//           DISP=(NEW,CATLG,DELETE),                         
//           SPACE=(CYL,(200,100),RLSE),                       
//           LRECL=200,RECFM=FB,AVGREC=K                       
//SORTXSUM DD DSN=DPRACE.D372988.TEST37.XSUM,                 
//           DISP=(NEW,CATLG,DELETE),                         
//           SPACE=(CYL,(200,100),RLSE),                       
//           LRECL=200,RECFM=FB,AVGREC=K                       
//SYSIN DD *                   
        SORT FIELDS =COPY       
        SUM FIELDS =NONE,XSUM   
/*                             
//                             




Code:
Abend:

 10.018 17.58 54235 $HASP165 D372988S ENDED AT VK/VIR - ABENDED S000 U0007 CN(IN
TERNAL)                                                                         
 ***                                                                           

SYSOUT :

ICE000I J - CONTROL STATEMENTS FOR 5694-A01, Z/OS DFSORT V1R5 - 17:58 ON MON JAN
                  SORT FIELDS =COPY                                             
                             $         
ICE007A P SYNTAX ERROR                 
ICE052I J END OF DFSORT               

Please help me for this problem

Thanks,
L.Nethaji
Back to top
View user's profile Send private message
Frank Yaeger

DFSORT Developer


Joined: 15 Feb 2005
Posts: 7129
Location: San Jose, CA

PostPosted: Mon Jan 18, 2010 11:19 pm
Reply with quote

As indicated by the syntax error (ICE007A), your SORT statement is incorrect. It should be:

Code:

   SORT FIELDS=COPY


However, you can't use COPY with SUM FIELDS=NONE and DFSORT doesn't support XSUM. You can do what you want using the DFSORT/ICETOOL technique described in the "Keep dropped duplicate records (XSUM)" Smart DFSORT Trick at:

www.ibm.com/support/docview.wss?rs=114&uid=isg3T7000094

However, in order to work with duplicates, you need to specify the field on which you will be checking for duplicates. That's why you can only use SUM FIELDS=NONE for a SORT or MERGE application, not a COPY application.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DFSORT/ICETOOL

 


Similar Topics
Topic Forum Replies
No new posts ISAM and abend S03B JCL & VSAM 10
No new posts Abend S0C4 11 (Page Translation Excep... PL/I & Assembler 16
No new posts Facing ABM3 issue! CICS 3
No new posts WER999A - UNSUCCESSFUL SORT 8ED U Ab... SYNCSORT 5
No new posts the system or user abend SF0F R=NULL COBOL Programming 0
Search our Forums:

Back to Top