Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Facing U0007 abend

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
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    Post subject: Facing U0007 abend
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 Moderator


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

PostPosted: Mon Jan 18, 2010 11:19 pm    Post subject:
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:

http://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    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts IMS region inactive - User abend code... gthmrj IMS DB/DC 5 Tue Mar 07, 2017 12:29 pm
No new posts IMS BMP program causes 878 system abend Artemk IMS DB/DC 7 Tue Nov 22, 2016 8:26 pm
No new posts abend sort based on count records in ... anatol DFSORT/ICETOOL 5 Mon Oct 17, 2016 10:10 pm
No new posts hot to get details when "EXEC CI... Andi1982 CICS 11 Tue Sep 20, 2016 5:01 pm
No new posts S213-14 ABEND explantion Apurva Mehta JCL & VSAM 5 Thu Jul 07, 2016 10:56 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us