|
View previous topic :: View next topic
|
| Author |
Message |
GaganGarg
Active User

Joined: 31 Mar 2010 Posts: 134 Location: India
|
|
|
|
Hi,
I am using the jcl as given below:
| Code: |
//STEP07 EXEC PGM=ICETOOL
//TOOLMSG DD SYSOUT=*
//DFSMSG DD SYSOUT=*
//T1 DD DSN=&&T1,UNIT=SYSDA,SPACE=(CYL,(500,500)),DISP=(MOD,PASS)
//SORTIN DD DSN=OPERA12,FILE1,
// DISP=SHR
// DD DSN=OPERA12.FILE2,
// DISP=SHR
//SORTOUT DD DSN=OPERA12.FILE3,
// DISP=(,CATLG,DELETE),
// SPACE=(CYL,(300,300),RLSE),AVGREC=K,VOL=(,,,59)
//TOOLIN DD *
COPY FROM(SORTIN) TO(T1) USING(CTL4)
OCCUR FROM(T1) LIST(SORTOUT) -
TITLE(' XXXXXXXXXXXXXXXXXXXXXXX') -
DATE-
PAGE -
HEADER('ABC') ON(1,14,CH) -
HEADER('DE') ON(19,2,CH) -
HEADER('DATE') ON(21,10,CH)-
HEADER('YYYYYYY') ON(31,1,CH)-
HEADER('MESSAGE') ON(36,12,CH)-
HEADER(COUNTXX) ON(VALCNT,N06) -
BLANK
/*
//CTL4CNTL DD *
SORT FIELDS=(1,18,CH,A)
/*
|
Here o/p file going empty everytime. But when we are writing the SORTOUT to the spool, spool is geeting populated. We want to write the details in the file only.
File1: 47/FB
File2: 47/FB
Our client mainframe is using the below version of DFSORT:
| Code: |
ICE143I 0 BLOCKSET SORT TECHNIQUE SELECTED
ICE250I 0 VISIT http://www.ibm.com/storage/dfsort FOR DFSORT PAPERS, EXAMPLES AN
ICE000I 0 - CONTROL STATEMENTS FOR 5694-A01, Z/OS DFSORT V1R10 - 09:02 ON THU JU
|
Please help to resolve the issue.
Thanks
Gagan |
|
| Back to top |
|
 |
CICS Guy
Senior Member

Joined: 18 Jul 2007 Posts: 2146 Location: At my coffee table
|
|
|
|
| GaganGarg wrote: |
Our client mainframe is using the below version of DFSORT:
| Code: |
ICE143I 0 BLOCKSET SORT TECHNIQUE SELECTED
ICE250I 0 VISIT http://www.ibm.com/storage/dfsort FOR DFSORT PAPERS, EXAMPLES AN
ICE000I 0 - CONTROL STATEMENTS FOR 5694-A01, Z/OS DFSORT V1R10 - 09:02 ON THU JU
|
|
Feel free to post the entire output.... |
|
| Back to top |
|
 |
Amolondhe007 Warnings : 1 New User

Joined: 16 Apr 2007 Posts: 49 Location: Pune
|
|
|
|
| Could you please elaborate more. |
|
| Back to top |
|
 |
Skolusu
Senior Member
Joined: 07 Dec 2007 Posts: 2205 Location: San Jose
|
|
|
|
GaganGarg,
Show me the following messages from TOOLMSG after the OCCUR operator.
ICE603I
ICE628I
ICE638I |
|
| Back to top |
|
 |
Frank Yaeger
DFSORT Developer

Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
|
|
|
|
Gagan,
I don't know if this is the problem, but it's worth trying.
Use LIST(OUT) instead of LIST(SORTOUT) and change the //SORTOUT DD to a //OUT DD.
Since SORTOUT is the name used by DFSORT for the normal output and LIST is NOT the normal output, using LIST(SORTOUT) may be causing a problem. |
|
| Back to top |
|
 |
GaganGarg
Active User

Joined: 31 Mar 2010 Posts: 134 Location: India
|
|
|
|
HI Frank,
You were Right. Whatever you suggested, worked fine. Thanks A lot for the valuable suggestion.
Thanks |
|
| Back to top |
|
 |
GaganGarg
Active User

Joined: 31 Mar 2010 Posts: 134 Location: India
|
|
|
|
@ Skolusu
| Code: |
ICE603I 0 INFORMATION PRINTED IN SORTOUT DATA SET
ICE628I 0 RECORD COUNT: 000000001142137
ICE638I 0 NUMBER OF RECORDS RESULTING FROM CRITERIA: 000000000053995
|
These were the messages displayed in the spool. But the solution suggested by Frank worked fine.
Thanks all for the help. |
|
| Back to top |
|
 |
|
|
 |
All times are GMT + 6 Hours |
|