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
 

 

SYNCTOOL Error: SUM CONTROL STATEMENT IGNORED

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
harinadh

New User


Joined: 01 Sep 2004
Posts: 18

PostPosted: Tue Jan 09, 2007 7:35 pm    Post subject: SYNCTOOL Error: SUM CONTROL STATEMENT IGNORED
Reply with quote

Hi,

I have one Input file. I am creating 2 output files using SYNCTOOL.

The JCL looks like this
Code:

//STEPA  EXEC PGM=SYNCTOOL
//TOOLMSG DD SYSOUT=*
//DFSMSG DD SYSOUT=*
//IN2 DD DSN=TEST.INPUT1.CYCLE01,DISP=SHR
//F1  DD DSN=TEST.OUTPUT1.CYCLE01,DISP=SHR
//F2  DD DSN=TEST.OUTPUT2.CYCLE01,DISP=SHR
//TOOLIN   DD *
  COPY FROM(IN2) USING(CTL1)
  COPY FROM(IN2) USING(CTL2)
//CTL1CNTL DD *
 SORT FIELDS=(1,46,CH,A,61,3,CH,A)
 SUM FIELDS=(81,6,PD,87,6,PD)
 OUTFIL FNAMES=F1,
 OUTREC=(1,46,61,40,21X)
/*
//CTL2CNTL DD *
 SORT FIELDS=(1,46,CH,A,61,3,CH,A)
 SUM FIELDS=(67,6,PD,73,6,PD)
 OUTFIL FNAMES=F2,
 OUTREC=(1,46,3X,50,37,21X)
/*


After execution it is not executed properly. It displayed one message
"SUM CONTROL STATEMENT IGNORED".

I dont have much idea about SYNCTOOL. Could you please let me know why It happened?

Regards,
Hari.
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: Tue Jan 09, 2007 10:30 pm    Post subject:
Reply with quote

When I run your job with DFSORT's ICETOOL, it does not ignore the SUM statement.

The message you received indicates you're using Syncsort's SYNCTOOL, not DFSORT's ICETOOL. DFSORT's ICETOOL is treating the operation as a SORT even though you have COPY in TOOLIN (the SORT statement is recognized and used). I suspect that Syncsort's SYNCTOOL is treating the operation as a COPY (the SORT statement is ignored).

Try changing COPY FROM... to SORT FROM... to see if that fixes the problem with Syncsort's SYNCTOOL.

Note that I'm a DFSORT developer. DFSORT and Syncsort are competitive products. I'm happy to answer questions on DFSORT and DFSORT's ICETOOL, but I generally don't answer questions on Syncsort. I was just feeling generous. icon_wink.gif
Back to top
View user's profile Send private message
harinadh

New User


Joined: 01 Sep 2004
Posts: 18

PostPosted: Wed Jan 10, 2007 11:40 am    Post subject: ICETOOL - SUM FIELDS PROBLEM
Reply with quote

Hi Frank,

Thanks for your prompt reply.

I used only ICETOOL only not SYNCSORT.

I dont know why It ignored the SUM statement.

Regards,
Hari.
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: Wed Jan 10, 2007 10:31 pm    Post subject:
Reply with quote

You may have coded PGM=ICETOOL, but you used Syncsort's SYNCTOOL, not DFSORT's ICETOOL. Syncsort chose to use ICETOOL as an alias for SYNCTOOL.

I know you used Syncsort, not DFSORT, because DFSORT does not issue the message you said you received - "SUM CONTROL STATEMENT IGNORED". If you look at that message, you'll see it is a WERcccs message (Syncsort), not an ICEcccs message (DFSORT). In the unlikely event it is an ICEcccs message, then what is ccc?

Quote:
I dont know why It ignored the SUM statement


I guessed why it ignored the SUM statement (because you did a COPY, not a SORT) and how to fix it (use SORT instead of COPY). Are you saying my guess is wrong and the fix didn't work?
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 -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts DB2 Program abending without giving a... rahulgarg14 DB2 7 Mon May 29, 2017 8:10 pm
No new posts Getting error while opening a variabl... apandey1 COBOL Programming 5 Fri May 05, 2017 12:22 pm
No new posts PA02 - Programmtically control attent... dodithegreat IMS DB/DC 1 Thu Apr 06, 2017 8:33 pm
No new posts IDC2902I Error tzeche ABENDS & Debugging 2 Tue Mar 28, 2017 11:39 am
No new posts Need help with below DB2 error ashek15 DB2 3 Sat Mar 18, 2017 5:56 am


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