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

SYNCTOOL Error: SUM CONTROL STATEMENT IGNORED


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
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
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 Developer


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

PostPosted: Tue Jan 09, 2007 10:30 pm
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
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 Developer


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

PostPosted: Wed Jan 10, 2007 10:31 pm
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Error to read log with rexx CLIST & REXX 11
No new posts Error when install DB2 DB2 2
No new posts CLIST - Virtual storage allocation error CLIST & REXX 5
No new posts Using Dynamic file handler in the Fil... COBOL Programming 2
No new posts Error while running web tool kit REXX... CLIST & REXX 5
Search our Forums:

Back to Top