|
View previous topic :: View next topic
|
| Author |
Message |
harinadh
New User

Joined: 01 Sep 2004 Posts: 18
|
|
|
|
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 |
|
 |
Frank Yaeger
DFSORT Developer

Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
|
|
|
|
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.  |
|
| Back to top |
|
 |
harinadh
New User

Joined: 01 Sep 2004 Posts: 18
|
|
|
|
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 |
|
 |
Frank Yaeger
DFSORT Developer

Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
|
|
|
|
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 |
|
 |
|
|
 |
All times are GMT + 6 Hours |
|