Page 2 of 2

Re: SUM FIELDS=NONE at file level !!

PostPosted: Sun Jul 08, 2012 10:29 am
by dick scherrer
Hello,

You need to post all of the JCL and sort control statements you submitted along with the complete set of messages (including message ids) generated by the sort step.

Re: SUM FIELDS=NONE at file level !!

PostPosted: Mon Jul 09, 2012 3:28 pm
by ranga_subham
I thought SYNCTOOL does this easily........your thoughts please !!

//STEPONE1 EXEC PGM=SYNCTOOL
//SSMSG    DD SYSOUT=*
//TOOLMSG  DD SYSOUT=*
//IN       DD INPUT.DATA,DISP=SHR
//FIRST    DD SYSOUT=*
//SECND    DD SYSOUT=*
//SYSOUT   DD SYSOUT=*
//TOOLIN   DD *
  SELECT FROM(IN) TO(FIRST) ON(1,2,CH) FIRST USING(RAN1)
  SELECT FROM(IN) TO(SECND) ON(4,2,CH) FIRST USING(RAN2)
//RAN1CNTL DD *
  OUTFIL FNAMES=FIRST
//RAN2CNTL DD *
  OUTFIL FNAME=SECND


Thanks.

Re: SUM FIELDS=NONE at file level !!

PostPosted: Mon Jul 09, 2012 4:04 pm
by BillyBoyo
One mystery cleared up anyway.

Although this is "one step" it is two passes and sorts of the file. And will it work, if you don't sort on the minor key?

Do you need the CNTL files?

Re: SUM FIELDS=NONE at file level !!

PostPosted: Tue Jul 10, 2012 3:28 pm
by ranga_subham
BillyBoyo, Yes, please let me know your solution to this problem.

Thanks.

Re: SUM FIELDS=NONE at file level !!

PostPosted: Tue Jul 10, 2012 4:15 pm
by BillyBoyo
You haven't answered the questions.

For your question, re-read the whole topic.

Re: SUM FIELDS=NONE at file level !!

PostPosted: Thu Jul 12, 2012 10:50 am
by Anuj Dhawan
There are multiple disconnects in this thread. Will try to address as much as I can:

1. This
//SYSIN    DD *
 SORT FIELDS=(4,2,CH,A)
 SUM FIELDS=NONE
/*
with this as input
//SORTIN       DD *
A1 B1             
A2 B2             
A1 B3             
A2 B1             
will give you
A1 B1
A2 B2
A1 B3
as SORTOUT and not what you show, as an example.

2. I, for one, wont' recommend using PipeSort unless you're looking forward to reduce the elapsed time. That's what PipeSort is designed for.

Re: SUM FIELDS=NONE at file level !!

PostPosted: Thu Jul 12, 2012 10:55 am
by Anuj Dhawan
3. Your SYNCTOOL is correct, as far as I can make out of this thread, what error are you getting? If you wanted to say that, the SYNCTOOL Job ended with RC=16 then I'd say - in OUTFIL statement you're missing "S" in FILENAMES. If that's the problem you get, change this
//RAN2CNTL DD *
  OUTFIL FNAME=SECND
to
//RAN2CNTL DD *
OUTFIL FNAMES=SECND
and all should be well.

If this is not the problem, please explain again and answer the question which have been asked.

Re: SUM FIELDS=NONE at file level !!

PostPosted: Thu Jul 12, 2012 2:45 pm
by ranga_subham
Hi Anuj, thanks for identifying the mistake....... its working.

Re: SUM FIELDS=NONE at file level !!

PostPosted: Thu Jul 12, 2012 6:11 pm
by Anuj Dhawan
Glad, it helped.